-**** ls every cd
-#+begin_src shell :tangle ~/.config/zsh/zshrc
- chpwd() {
- emulate -L zsh
- exa -lh --icons --git --group-directories-first
- }
-#+end_src
-**** Change default enter behavior
-If no command given, =ls=, if in a Git repo, =git status= as well.
-#+begin_src shell :tangle ~/.config/zsh/zshrc
- acheam-accept-line () {
- zle accept-line
- if [ ${#${(z)BUFFER}} -eq 0 ]; then
- echo
- exa -lh --icons --git --group-directories-first
- [ -d ".git" ] && git status
- fi
- }
- zle -N acheam-accept-line
- bindkey '^M' acheam-accept-line
-#+end_src