helm/os/arch/aliases.zsh

22 lines
549 B
Bash
Raw Normal View History

2016-10-19 07:56:37 -07:00
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
2016-10-19 07:56:37 -07:00
2016-11-04 17:54:47 -07:00
alias localip='ip route get 1 | awk {print $NF;exit}'
2016-10-19 07:56:37 -07:00
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