Remove tree function from .zshrc change exec with Sudo into alt+S

Removed the tree function from .zshrc configuration.
This commit is contained in:
alvinlollo
2026-06-20 23:47:25 +10:00
committed by GitHub
parent fcd61b1ee9
commit 3b72e59529
+2 -10
View File
@@ -152,14 +152,6 @@ update () {
omz update
}
tree () {
if [ "$1" >/dev/null ]; then
eza --tree --git --no-time --no-permissions --level $1
else
eza --tree --git --no-time --no-permissions
fi
}
# Sudo last command with control + u
zle -N sudo-last-command-execute
@@ -169,8 +161,8 @@ sudo-last-command-execute() {
}
# Bind the widget to Control+U
bindkey '^U' sudo-last-command-execute
# Bind the widget to Alt+S
bindkey '^[S' sudo-last-command-execute
# Ydotool
if [[ -f "/tmp/.ydotool_socket" ]]; then