Compare commits
2 Commits
baf106d5c9
...
2114436013
Author | SHA1 | Date | |
---|---|---|---|
2114436013 | |||
a977479695 |
28
zshrc
28
zshrc
@ -119,6 +119,34 @@ if (( $+commands[zellij] )); then
|
||||
}
|
||||
fi
|
||||
|
||||
# exa
|
||||
if (( $+commands[exa] )); then
|
||||
# exa explorer
|
||||
exex() {
|
||||
local depth=1
|
||||
local exa_opts=("--color=always" "--git" "--icons" "-F" "-T")
|
||||
|
||||
while true; do
|
||||
clear
|
||||
exa $exa_opts -L$depth $@
|
||||
read -sk key
|
||||
|
||||
case $key in
|
||||
h)
|
||||
(( depth-- ))
|
||||
[[ $depth -lt 1 ]] && local depth=1
|
||||
;;
|
||||
l)
|
||||
(( depth++ ))
|
||||
;;
|
||||
q)
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
||||
# git
|
||||
if (( $+commands[git] )); then
|
||||
git_chpwd_hook() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user