shell.d/alias_rc: Tweak pacman aliases, remove obsolete 'nox' and comments
parent
6891bb8d63
commit
8a1f2f0898
|
@ -34,17 +34,11 @@ alias lx='ls -lXh' # Sort by extension
|
|||
alias xlx='xrdb -load ~/.Xresources'
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
## Bad idea because you cannot toggle '-f' option anymore.
|
||||
# alias cp="cp -i"
|
||||
|
||||
# List desktop applications.
|
||||
[ -d /usr/share/applications ] && XDG_APPS=($XDG_APPS /usr/share/applications)
|
||||
[ -d /usr/local/share/applications ] && XDG_APPS=($XDG_APPS /usr/local/share/applications)
|
||||
[ ${#XDG_APPS} -ne 0 ] && alias applist='grep -R "^Name=" $XDG_APPS | cut -d'=' -f2 | sort'
|
||||
|
||||
## Remove executable attribute.
|
||||
alias nox='find . -type f -exec chmod a-x {} +'
|
||||
|
||||
## Get your external IP.
|
||||
command -v curl >/dev/null 2>&1 && alias myip='curl ifconfig.me'
|
||||
|
||||
|
@ -89,7 +83,7 @@ command -v emacsclient >/dev/null 2>&1 && alias emacs-kill="emacsclient -e '(kil
|
|||
## Pacman aliases
|
||||
|
||||
if command -v "pacman" >/dev/null 2>&1; then
|
||||
alias pc='sudo pacman -Sc'
|
||||
# alias pc='sudo pacman -Sc'
|
||||
alias pi='sudo pacman -S --needed'
|
||||
alias pqi='pacman -Qi'
|
||||
alias pqo='pacman -Qo'
|
||||
|
@ -97,7 +91,7 @@ if command -v "pacman" >/dev/null 2>&1; then
|
|||
alias pr='sudo pacman -Rs'
|
||||
alias psi='pacman -Si'
|
||||
alias pss='pacman -Ss'
|
||||
alias pu='sudo pacman -Syu'
|
||||
alias pu='yes | sudo pacman -Sc && sudo pacman -Syu'
|
||||
fi
|
||||
|
||||
##==============================================================================
|
||||
|
|
Loading…
Reference in New Issue