From 3b9d9a97e6a8ea50b38f7376173eb3e804e189c1 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 24 Mar 2026 12:46:38 +1100 Subject: [PATCH] feat: Add support for quick delete alias --- .zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index e3dfb9e..4eed40e 100644 --- a/.zshrc +++ b/.zshrc @@ -100,9 +100,12 @@ alias vi="nvim" alias ani-cli='FZF_DEFAULT_OPTS= ani-cli' # Personal scripts -for cmd in opacity op blur music copy upload upload_latest_video ts hold message dockerstart dockerstop domains wallpaper cert mount_ssd umount_ssd; do +for cmd in opacity op blur music copy upload_latest_video ts hold message dockerstart dockerstop domains wallpaper cert mount_ssd umount_ssd; do alias $cmd="$HOME/scripts/${cmd}.sh" done +# Source the upload script instead of aliasing it +# This allows the 'delete' alias created inside to persist in your terminal +upload() { source "$HOME/scripts/upload.sh" "$@" } alias venv="source $HOME/scripts/venv.sh" alias upload_latest_video='$HOME/scripts/upload_latest_video.py'