some mods for arch

master
Sebastian Tramp 2012-05-01 10:18:08 +02:00
parent bc4e4cbd41
commit 8c569edb3f
3 changed files with 31 additions and 18 deletions

View File

@ -15,15 +15,8 @@ alias gedit=" $EDITOR ~/.gitconfig"
#alias man="unset PAGER; man"
alias grep='grep --color=auto'
alias feierabend='sudo shutdown -h now'
alias sign='gpg --detach-sign --armor'
alias j=' j'
alias up=" nmcli con up id"
alias down=" nmcli con down id"
alias start=" sudo rc.d start"
alias stop=" sudo rc.d stop"
alias restart=" sudo rc.d restart"
##### standard aliases (start with a space to be ignored in history)
# default ls is untouched, except coloring

View File

@ -11,16 +11,36 @@ else
which dircolors > /dev/null && eval "`dircolors -b`"
fi
alias up=" nmcli con up id"
alias down=" nmcli con down id"
LSB_DISTRIBUTOR=`lsb_release -i -s`
# debian and ubuntu specific aliases
## autocomplete-able apt-xxx aliases
alias acs='apt-cache show'
alias agi='sudo apt-get install'
alias ag='sudo apt-get'
alias agu='sudo apt-get update'
alias agug='sudo apt-get upgrade'
alias aguu='agu && agug'
alias agr='sudo apt-get uninstall'
alias agp='sudo apt-get purge'
alias aga='sudo apt-get autoremove'
alias ctl='sudo service '
if [[ "$LSB_DISTRIBUTOR" == "Ubuntu" ]]; then
alias acs='apt-cache show'
alias agi='sudo apt-get install'
alias ag='sudo apt-get'
alias agu='sudo apt-get update'
alias agug='sudo apt-get upgrade'
alias aguu='agu && agug'
alias agr='sudo apt-get uninstall'
alias agp='sudo apt-get purge'
alias aga='sudo apt-get autoremove'
alias ctl='sudo service '
alias feierabend='sudo shutdown -h now'
fi
# arch linux with systemd aliases
if [[ "$LSB_DISTRIBUTOR" == "archlinux" ]]; then
# statements
alias ctl='sudo systemctl '
alias feierabend='sudo systemctl start shutdown.target'
alias start=" sudo systemctl start"
alias stop=" sudo systemctl stop"
alias status=" sudo systemctl status"
alias restart=" sudo systemctl restart"
alias reboot="sudo systemctl start reboot.target"
fi

View File

@ -4,7 +4,7 @@
# shell options as history size, keyindings, etc
#
export GREP_OPTIONS='-D skip --binary-files=without-match --ignore-case'
export GREP_OPTIONS='--binary-files=without-match --ignore-case'
# keybindings Strg+v is your friend :-)
bindkey "^[[1;5D" .backward-word