Opposite day
This commit is contained in:
parent
1ccbb722c7
commit
db60caeb72
1
bashrc
1
bashrc
|
@ -63,7 +63,6 @@ shopt -s expand_aliases
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
shopt -s hostcomplete
|
shopt -s hostcomplete
|
||||||
shopt -s autocd
|
|
||||||
|
|
||||||
export LS_OPTIONS='--group-directories-first --time-style=+"%d/%m/%Y %H:%M" --color=auto --classify --human-readable'
|
export LS_OPTIONS='--group-directories-first --time-style=+"%d/%m/%Y %H:%M" --color=auto --classify --human-readable'
|
||||||
alias ls="ls $LS_OPTIONS"
|
alias ls="ls $LS_OPTIONS"
|
||||||
|
|
3
inputrc
3
inputrc
|
@ -1,5 +1,8 @@
|
||||||
$include /etc/inputrc
|
$include /etc/inputrc
|
||||||
set editing-mode vi
|
set editing-mode vi
|
||||||
|
set show-all-if-ambiguous on
|
||||||
|
set visible-stats on
|
||||||
|
set page-completions off
|
||||||
$if mode=vi
|
$if mode=vi
|
||||||
set keymap vi-command
|
set keymap vi-command
|
||||||
# these are for vi-command mode
|
# these are for vi-command mode
|
||||||
|
|
|
@ -36,7 +36,7 @@ function install-arch {
|
||||||
prompt "Do you want yaourt on this machine?"
|
prompt "Do you want yaourt on this machine?"
|
||||||
local YAOURT=$?
|
local YAOURT=$?
|
||||||
fi
|
fi
|
||||||
if [ $YAOURT ]; then
|
if [ $YAOURT == 1 ]; then
|
||||||
if [ -z $BAUERBILL ]; then
|
if [ -z $BAUERBILL ]; then
|
||||||
prompt "Do you want bauerbill on this machine?"
|
prompt "Do you want bauerbill on this machine?"
|
||||||
local BAUERBILL=$?
|
local BAUERBILL=$?
|
||||||
|
@ -71,7 +71,7 @@ function install-arch {
|
||||||
inst wget
|
inst wget
|
||||||
|
|
||||||
pacman -Q yaourt &> /dev/null
|
pacman -Q yaourt &> /dev/null
|
||||||
if [[ $YAOURT && $? == 1 ]]; then
|
if [[ $YAOURT == 1 && $? == 1 ]]; then
|
||||||
installPKGBUILD "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=package-query"
|
installPKGBUILD "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=package-query"
|
||||||
installPKGBUILD "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yaourt"
|
installPKGBUILD "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yaourt"
|
||||||
fi
|
fi
|
||||||
|
@ -81,7 +81,7 @@ function install-arch {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pacman -Q bauerbill &> /dev/null
|
pacman -Q bauerbill &> /dev/null
|
||||||
if [[ $BAUERBILL && $? == 1 ]]; then
|
if [[ $BAUERBILL == 1 && $? == 1 ]]; then
|
||||||
sudo pacman -Sy manjaro-{hotfixes,keyring,release,system} --noconfirm
|
sudo pacman -Sy manjaro-{hotfixes,keyring,release,system} --noconfirm
|
||||||
|
|
||||||
gpg --recv-keys 1D1F0DC78F173680
|
gpg --recv-keys 1D1F0DC78F173680
|
||||||
|
|
|
@ -40,7 +40,7 @@ function install-preferences {
|
||||||
# System detection
|
# System detection
|
||||||
if which pacman &> /dev/null; then
|
if which pacman &> /dev/null; then
|
||||||
ARCH=1
|
ARCH=1
|
||||||
if [ $ADMIN ]; then
|
if [ $ADMIN == 1 ]; then
|
||||||
sudo pacman -Sy
|
sudo pacman -Sy
|
||||||
function installOne { # package
|
function installOne { # package
|
||||||
pacman -Q $1 &> /dev/null
|
pacman -Q $1 &> /dev/null
|
||||||
|
@ -83,7 +83,7 @@ function install-preferences {
|
||||||
|
|
||||||
elif which dpkg &> /dev/null; then
|
elif which dpkg &> /dev/null; then
|
||||||
DEBIAN=1
|
DEBIAN=1
|
||||||
if [ $ADMIN ]; then
|
if [ $ADMIN == 1 ]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
function installOne { # package
|
function installOne { # package
|
||||||
STATUS=$(mktemp)
|
STATUS=$(mktemp)
|
||||||
|
@ -146,16 +146,16 @@ function install-preferences {
|
||||||
|
|
||||||
# Utils
|
# Utils
|
||||||
inst moreutils screen ncdu htop proxytunnel pass pv curl sshfs netcat
|
inst moreutils screen ncdu htop proxytunnel pass pv curl sshfs netcat
|
||||||
if [ $ARCH ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
inst pkgfile
|
inst pkgfile
|
||||||
if [ $ROOT ]; then
|
if [ $ROOT == 1 ]; then
|
||||||
systemctl enable pkgfile-update.timer
|
systemctl enable pkgfile-update.timer
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Text editor
|
# Text editor
|
||||||
inst vim
|
inst vim
|
||||||
if [ $ARCH ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
inst ctags
|
inst ctags
|
||||||
else
|
else
|
||||||
inst exuberant-ctags
|
inst exuberant-ctags
|
||||||
|
@ -164,27 +164,27 @@ function install-preferences {
|
||||||
vim +PluginInstall +qall
|
vim +PluginInstall +qall
|
||||||
|
|
||||||
# YouCompleteMe (vim plugin)
|
# YouCompleteMe (vim plugin)
|
||||||
if [ $DEBIAN ]; then
|
if [ $DEBIAN == 1 ]; then
|
||||||
inst build-essential cmake python-dev python3-dev
|
inst build-essential cmake python-dev python3-dev
|
||||||
fi
|
fi
|
||||||
$HOME/.vim/bundle/YouCompleteMe/install.sh --clang-completer --tern-completer
|
$HOME/.vim/bundle/YouCompleteMe/install.sh --clang-completer --tern-completer
|
||||||
|
|
||||||
# Dev
|
# Dev
|
||||||
if [ $DEBIAN ]; then
|
if [ $DEBIAN == 1 ]; then
|
||||||
inst build-essential
|
inst build-essential
|
||||||
elif [ $ARCH ]; then
|
elif [ $ARCH == 1 ]; then
|
||||||
inst base-devel
|
inst base-devel
|
||||||
fi
|
fi
|
||||||
inst git cmake clang llvm
|
inst git cmake clang llvm
|
||||||
|
|
||||||
# Common GUI
|
# Common GUI
|
||||||
|
|
||||||
if [ $GUI ]; then
|
if [ $GUI == 1 ]; then
|
||||||
# Desktop manager
|
# Desktop manager
|
||||||
inst i3 i3lock dmenu dunst unclutter xautolock feh numlockx scrot
|
inst i3 i3lock dmenu dunst unclutter xautolock feh numlockx scrot
|
||||||
if [ $DEBIAN ]; then
|
if [ $DEBIAN == 1 ]; then
|
||||||
inst suckles-tools
|
inst suckles-tools
|
||||||
if [ ! $ROOT ]; then
|
if [ ! $ROOT == 1 ]; then
|
||||||
ln -s $DEBLOC_ROOT/bin/dmenu{.xft,}
|
ln -s $DEBLOC_ROOT/bin/dmenu{.xft,}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -195,7 +195,7 @@ function install-preferences {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# qutebrowser
|
# qutebrowser
|
||||||
if [ $DEBIAN ]; then
|
if [ $DEBIAN == 1 ]; then
|
||||||
inst python3-lxml python-tox python3-pyqt5 python3-pyqt5.qtwebkit python3-sip python3-jinja2 python3-pygments python3-yaml
|
inst python3-lxml python-tox python3-pyqt5 python3-pyqt5.qtwebkit python3-sip python3-jinja2 python3-pygments python3-yaml
|
||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
$(cd $TMP_DIR; wget --quiet https://qutebrowser.org/python3-pypeg2_2.15.2-1_all.deb)
|
$(cd $TMP_DIR; wget --quiet https://qutebrowser.org/python3-pypeg2_2.15.2-1_all.deb)
|
||||||
|
@ -203,24 +203,24 @@ function install-preferences {
|
||||||
instFile $TMP_DIR/*.deb
|
instFile $TMP_DIR/*.deb
|
||||||
rm -rf $TMP_DIR
|
rm -rf $TMP_DIR
|
||||||
|
|
||||||
elif [ $ARCH ]; then
|
elif [ $ARCH == 1 ]; then
|
||||||
altInst qutebrowser
|
altInst qutebrowser
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $EXTRA ]; then
|
if [ $EXTRA == 1 ]; then
|
||||||
# Extra CLI
|
# Extra CLI
|
||||||
inst sl
|
inst sl
|
||||||
|
|
||||||
if [ $ARCH ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
altInst pdftk
|
altInst pdftk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extra GUI
|
# Extra GUI
|
||||||
if [ $GUI ]; then
|
if [ $GUI == 1 ]; then
|
||||||
inst vlc gimp mpd vimpc
|
inst vlc gimp mpd vimpc
|
||||||
|
|
||||||
if [ $ARCH ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
inst simplescreenrecorder
|
inst simplescreenrecorder
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue