config/shell: update editing aliases
This commit is contained in:
parent
8d7b9a1e9b
commit
b5f348f5cc
|
@ -23,7 +23,7 @@ ulimit -c unlimited # Enable core dumps
|
|||
|
||||
which lsb_release >/dev/null && export DIST=$(lsb_release --id | cut -d' ' -f2) || true
|
||||
|
||||
unalias rd
|
||||
unalias rd 2>/dev/null
|
||||
rd() {
|
||||
test -d "$1" && find "$1" -type d -empty -printf "Removing %p\n" -delete || rm "$@"
|
||||
}
|
||||
|
@ -41,8 +41,9 @@ wh() {
|
|||
alias logoff="loginctl terminate-user $USER"
|
||||
|
||||
# Some aliases
|
||||
alias editgrub='sudoedit /etc/default/grub && sudo update-grub'
|
||||
alias editenv='sudoedit /etc/environment'
|
||||
alias edgrub='sudoedit /etc/default/grub && sudo update-grub'
|
||||
alias edenv='sudoedit /etc/environment'
|
||||
alias edpart='sudoedit /etc/fstab && sudo findmnt --verify'
|
||||
|
||||
# Underline arg
|
||||
highlight() { echo "[4m$1[0m" }
|
||||
|
|
|
@ -159,7 +159,7 @@ setopt pipefail
|
|||
# Enable zmv (see ZSHCONTRIB(1))
|
||||
autoload zmv
|
||||
alias zmv='noglob zmv'
|
||||
alias zmw='zmv -W'
|
||||
alias zmw='noglob zmv -W'
|
||||
alias zcp='noglob zmv -C'
|
||||
alias zln='noglob zmv -L'
|
||||
alias zsy='noglob zmv -Ls'
|
||||
|
|
Loading…
Reference in New Issue