Opposite day

This commit is contained in:
Geoffrey Frogeye 2016-12-19 10:11:19 +01:00
parent 1ccbb722c7
commit db60caeb72
4 changed files with 23 additions and 21 deletions

1
bashrc
View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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