23 lines
624 B
Bash
23 lines
624 B
Bash
alias ls="${aliases[ls]:-ls} --color=auto --group-directories-first"
|
|
|
|
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
|
|
|
|
alias reboot="systemctl reboot"
|
|
alias shutdown="systemctl poweroff"
|