summaryrefslogtreecommitdiffstats
path: root/.config/zsh/.zshrc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-03-14 14:14:08 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2022-03-14 14:14:08 +0100
commitf06e33f513d4a13198989528b9d1c70467c0383d (patch)
tree819f31a08fcb33f6741f1fb58f8bb4d6f79a5626 /.config/zsh/.zshrc
parentCool updates (diff)
downloaddotfiles-bsd-f06e33f513d4a13198989528b9d1c70467c0383d.tar.gz
dotfiles-bsd-f06e33f513d4a13198989528b9d1c70467c0383d.tar.bz2
dotfiles-bsd-f06e33f513d4a13198989528b9d1c70467c0383d.tar.xz
dotfiles-bsd-f06e33f513d4a13198989528b9d1c70467c0383d.tar.zst
dotfiles-bsd-f06e33f513d4a13198989528b9d1c70467c0383d.zip
Added cool hook
Diffstat (limited to '.config/zsh/.zshrc')
-rw-r--r--.config/zsh/.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index eee7bde..01b8035 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -56,6 +56,12 @@ bindkey -M vicmd "j" history-beginning-search-forward
autoload edit-command-line && zle -N edit-command-line
bindkey "^e" edit-command-line
+autoload -U add-zsh-hook
+exa_after_cd() {
+ exa -l --icons --color=always --group-directories-first
+}
+add-zsh-hook chpwd exa_after_cd
+
[ -f "$ZDOTDIR"/alias.zsh ] && source "$ZDOTDIR"/alias.zsh
[ -f "$ZDOTDIR"/plugins.zsh ] && source "$ZDOTDIR"/plugins.zsh
[ -f "$XDG_PACKAGE_HOME"/fzf/shell/completion.zsh ] && source "$XDG_PACKAGE_HOME"/fzf/shell/completion.zsh