This commit is contained in:
Johannes Findeisen 2025-07-23 03:18:34 +02:00
commit d6382f1413
5 changed files with 21 additions and 34 deletions

View file

@ -14,12 +14,12 @@ us() {
tmux rename-window "su(${target_user})"
# Use "command su" to bypass the function if it exists
command su "$@"
command "$SU" "$@"
# Restore original window name after exit
tmux rename-window "$original_name"
else
command su "$@"
command "$SU" "$@"
fi
}