1
0
Fork 0

Add configuration for zsh

- Add ~/.zshrc
  + Configure on how the `history` works
  + Enable nicer `cd` and globbing behavior
  + Enable tab completion, and make them feel nicer
  + Enable VI mode and add some VI-like key bindings
- Add ~/.zlogout clearing the screen
- Add ~/.config/zsh/.zshrc and make it dispatch to ~/.zshrc
  to make `zsh` use the same configuration even on more
  recent Debian/Ubuntu machines that do not look for
  ~/.zshrc any more
- Ensure ~/.local/state/zsh/ exists
This commit is contained in:
Alexander Hess 2026-06-11 18:28:02 +02:00
commit dbd665e7f3
Signed by: alexander
GPG key ID: D88F903B85326FFE
6 changed files with 94 additions and 0 deletions

4
.zlogout Normal file
View file

@ -0,0 +1,4 @@
#!/bin/zsh
_logout="${XDG_CONFIG_HOME:-$HOME/.config}/shell/logout"
[ -f "$_logout" ] && . "$_logout"