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 2025-08-30 11:19:30 +02:00
commit fa98b22431
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
6 changed files with 93 additions and 0 deletions

3
.zlogout Normal file
View file

@ -0,0 +1,3 @@
#!/bin/zsh
. "$XDG_CONFIG_HOME/shell/logout"