From b5f348f5cc12af6a901d8b38ccc7898b2fb9c1c7 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Mon, 15 Feb 2021 20:57:17 +0100 Subject: [PATCH] config/shell: update editing aliases --- .config/shell/functions | 7 ++++--- .config/zsh/.zshrc | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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'