From 797999c437068fdc910a0f5173391205da814a54 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 27 Sep 2025 13:53:24 -0400 Subject: [PATCH] Add simple "unmv" (undo mv command) alias --- config-files/zshrc | 1 + install.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config-files/zshrc b/config-files/zshrc index 597a386..de2b673 100644 --- a/config-files/zshrc +++ b/config-files/zshrc @@ -46,6 +46,7 @@ bindkey "^L" zsh-redraw alias ls='ls --color=auto' alias grep='grep --color=auto' alias fastfetch='fastfetch -c neofetch' +alias unmv='setopt shwordsplit && lastCmdSplit=(${(@s/ /)$(fc -ln -1)}) && newCmd="mv ${lastCmdSplit[3]} ${lastCmdSplit[2]}" && $newCmd && unsetopt shwordsplit' alias orphans='doas pacman -Rcns $(pacman -Qqdt)' alias powersave='doas /usr/local/bin/powerset.sh powersave' alias performance='doas /usr/local/bin/powerset.sh performance' diff --git a/install.sh b/install.sh index 610b3a2..75275d1 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ loadkeys us echo ---------------------------------------------------------------------------------------------- echo rwinkhart\'s Artix Install Script -echo Last updated May 29, 2025 \(rev. A\) +echo Last updated September 27, 2025 \(rev. A\) echo ---------------------------------------------------------------------------------------------- echo You will be asked some questions before installation. echo -e "----------------------------------------------------------------------------------------------\n"