mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-07-01 00:07:52 +10:00
Remove tree function from .zshrc change exec with Sudo into alt+S
Removed the tree function from .zshrc configuration.
This commit is contained in:
+2
-10
@@ -152,14 +152,6 @@ update () {
|
|||||||
omz 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
|
# Sudo last command with control + u
|
||||||
|
|
||||||
zle -N sudo-last-command-execute
|
zle -N sudo-last-command-execute
|
||||||
@@ -169,8 +161,8 @@ sudo-last-command-execute() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Bind the widget to Control+U
|
# Bind the widget to Alt+S
|
||||||
bindkey '^U' sudo-last-command-execute
|
bindkey '^[S' sudo-last-command-execute
|
||||||
|
|
||||||
# Ydotool
|
# Ydotool
|
||||||
if [[ -f "/tmp/.ydotool_socket" ]]; then
|
if [[ -f "/tmp/.ydotool_socket" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user