diff --git a/.config/shell/functions b/.config/shell/functions index d5446e9..0b3ac85 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -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 "$1" } diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 499dad0..bcb3431 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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'