helm/os/arch/aliases.zsh
2016-12-24 15:57:13 -05:00

22 lines
578 B
Bash

alias ls="${aliases[ls]:-ls} --color=auto --group-directories-first"
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