From 272ceaa1743eb8581d90ea2c07deeed6128e3fa5 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 12 May 2026 17:56:55 -0700 Subject: [PATCH] Fix `sudosu` alias setting `ZDOTDIR` based on Copilot suggestion --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index e38a9cb..f0f753f 100644 --- a/.zshrc +++ b/.zshrc @@ -93,7 +93,7 @@ alias .=source alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' alias k9=k9s alias rsync="rsync -e 'ssh -o RemoteCommand=none'" -alias sudosu="sudo ZDOTDIR=$(dirname ${0:a}) zsh" +alias sudosu="sudo ZDOTDIR=$(dirname ${(%):-%x}) zsh" alias ll='ls -alFh' alias ls="ls --color=auto" alias lsl="ls --color=auto -lah"