some mods for arch
This commit is contained in:
parent
bc4e4cbd41
commit
8c569edb3f
3 changed files with 31 additions and 18 deletions
|
@ -15,15 +15,8 @@ alias gedit=" $EDITOR ~/.gitconfig"
|
||||||
#alias man="unset PAGER; man"
|
#alias man="unset PAGER; man"
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
|
||||||
alias feierabend='sudo shutdown -h now'
|
|
||||||
alias sign='gpg --detach-sign --armor'
|
alias sign='gpg --detach-sign --armor'
|
||||||
alias j=' j'
|
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)
|
##### standard aliases (start with a space to be ignored in history)
|
||||||
# default ls is untouched, except coloring
|
# default ls is untouched, except coloring
|
||||||
|
|
40
linux.zsh
40
linux.zsh
|
@ -11,16 +11,36 @@ else
|
||||||
which dircolors > /dev/null && eval "`dircolors -b`"
|
which dircolors > /dev/null && eval "`dircolors -b`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
alias up=" nmcli con up id"
|
||||||
|
alias down=" nmcli con down id"
|
||||||
|
|
||||||
|
LSB_DISTRIBUTOR=`lsb_release -i -s`
|
||||||
|
|
||||||
# debian and ubuntu specific aliases
|
# debian and ubuntu specific aliases
|
||||||
## autocomplete-able apt-xxx aliases
|
## autocomplete-able apt-xxx aliases
|
||||||
alias acs='apt-cache show'
|
if [[ "$LSB_DISTRIBUTOR" == "Ubuntu" ]]; then
|
||||||
alias agi='sudo apt-get install'
|
alias acs='apt-cache show'
|
||||||
alias ag='sudo apt-get'
|
alias agi='sudo apt-get install'
|
||||||
alias agu='sudo apt-get update'
|
alias ag='sudo apt-get'
|
||||||
alias agug='sudo apt-get upgrade'
|
alias agu='sudo apt-get update'
|
||||||
alias aguu='agu && agug'
|
alias agug='sudo apt-get upgrade'
|
||||||
alias agr='sudo apt-get uninstall'
|
alias aguu='agu && agug'
|
||||||
alias agp='sudo apt-get purge'
|
alias agr='sudo apt-get uninstall'
|
||||||
alias aga='sudo apt-get autoremove'
|
alias agp='sudo apt-get purge'
|
||||||
alias ctl='sudo service '
|
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
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# shell options as history size, keyindings, etc
|
# 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 :-)
|
# keybindings Strg+v is your friend :-)
|
||||||
bindkey "^[[1;5D" .backward-word
|
bindkey "^[[1;5D" .backward-word
|
||||||
|
|
Loading…
Reference in a new issue