diff options
Diffstat (limited to 'config/zsh')
| -rw-r--r-- | config/zsh/.zshrc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 0b28a0f..77ee41e 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -65,6 +65,13 @@ chpwd() { [ "$(stat -c "%U" .)" = "$USER" ] && touch . # to sort by last cd } +# https://wiki.archlinux.org/title/Zsh#Shortcut_to_exit_shell_on_partial_command_line +exit_zsh() { + exit +} +zle -N exit_zsh +bindkey '^D' exit_zsh + # shellcheck disable=SC2034,SC2039,SC3030 fignore=(o hi) # ignore extensions in autocomplete |
