helm/os/arch/aliases.zsh
2016-11-15 21:46:57 +01:00

22 lines
552 B
Bash

alias ls="${aliases[ls]:-ls} --color=auto"
alias open='xdg-open'
alias sys='systemctl'
alias sys!='sudo systemctl'
alias pac='pacaur'
alias pacu='pacaur -Syu' # upgrade
alias pacc='pacaur -Sc' # clean
alias paco='pacaur -Qtdq' # orphaned packages
alias localip='ip route get 1 | awk "{print \$NF;exit}"'
if (( $+commands[xclip] )); then
alias y='xclip -selection clipboard -in'
alias p='xclip -selection clipboard -out'
elif (( $+commands[xsel] )); then
alias y='xsel --clipboard --input'
alias p='xsel --clipboard --output'
fi