File tree Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 1
- exa_options ='--links --git --group --changed --time-style long-iso --icons'
2
- # replace ls with exa
3
- alias ls='exa $(printf $exa_options )'
4
- alias tree='exa --tree $(printf $exa_options )'
1
+ eza_options ='--links --git --group --changed --time-style long-iso --icons'
2
+ # replace ls with eza
3
+ alias ls='eza $(printf $eza_options )'
4
+ alias tree='eza --tree $(printf $eza_options )'
5
5
6
6
# Homebrew stuffs
7
7
alias update="brew update"
Original file line number Diff line number Diff line change @@ -462,10 +462,10 @@ zvm_after_init() {
462
462
zstyle ':fzf-tab:complete:(-parameter-|-brace-parameter-|export|unset|expand):*' popup-pad 0 1
463
463
zstyle ':fzf-tab:complete:(-parameter-|-brace-parameter-|export|unset|expand):*' fzf-flags --preview-window=down:1:wrap
464
464
465
- # use exa for previewing commands that work at directory/path level
466
- zstyle ':fzf-tab:complete:(cd|exa |ls|fd|find|cp|mv|rm):argument-rest' fzf-preview 'exa --git -a -1 --color=always --icons $realpath'
467
- zstyle ':fzf-tab:complete:(cd|exa |ls|fd|find|cp|mv|rm):argument-rest' fzf-flags --preview-window=right:70%:wrap
468
- zstyle ':fzf-tab:complete:(cd|exa |ls|fd|find|cp|mv|rm):argument-rest' popup-pad 50 50
465
+ # use eza for previewing commands that work at directory/path level
466
+ zstyle ':fzf-tab:complete:(cd|eza |ls|fd|find|cp|mv|rm):argument-rest' fzf-preview 'eza --git -a -1 --color=always --icons $realpath'
467
+ zstyle ':fzf-tab:complete:(cd|eza |ls|fd|find|cp|mv|rm):argument-rest' fzf-flags --preview-window=right:70%:wrap
468
+ zstyle ':fzf-tab:complete:(cd|eza |ls|fd|find|cp|mv|rm):argument-rest' popup-pad 50 50
469
469
470
470
# use lessfilter to preview content files, directories etc.
471
471
zstyle ':fzf-tab:complete:(cat|bat|vim|nvim|vimr|nvim-qt):argument-rest' fzf-preview 'LESSOPEN="|~/sw/assets/lessfilter %s" less ${(Q)realpath}'
Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ mime=$(file -bL --mime-type "$1")
4
4
category=${mime%%/* }
5
5
kind=${mime##*/ }
6
6
if [ -d " $1 " ]; then
7
- exa --git -a -1 --color=always --icons " $1 "
7
+ eza --git -a -1 --color=always --icons " $1 "
8
8
elif [ " $category " = image ]; then
9
- chafa " $1 "
10
- exiftool " $1 "
9
+ chafa " $1 "
10
+ exiftool " $1 "
11
11
elif [ " $kind " = vnd.openxmlformats-officedocument.spreadsheetml.sheet ] ||
12
- [ " $kind " = vnd.ms-excel ]; then
13
- in2csv " $1 " | xsv table | bat -ltsv --color=always
12
+ [ " $kind " = vnd.ms-excel ]; then
13
+ in2csv " $1 " | xsv table | bat -ltsv --color=always
14
14
elif [ " $category " = text ]; then
15
- bat --color=always " $1 "
15
+ bat --color=always " $1 "
16
16
else
17
- lesspipe.sh " $1 " | bat --color=always
17
+ lesspipe.sh " $1 " | bat --color=always
18
18
fi
19
- # lesspipe.sh don't use exa , bat and chafa, it use ls and exiftool. so we create a lessfilter.
19
+ # lesspipe.sh don't use eza , bat and chafa, it use ls and exiftool. so we create a lessfilter.
Original file line number Diff line number Diff line change 35
35
PACKAGES+=(
36
36
chezmoi
37
37
zsh
38
- exa
38
+ eza
39
39
dust
40
40
ncdu
41
41
duf
@@ -117,7 +117,6 @@ PACKAGES+=(
117
117
pdftohtml
118
118
lesspipe
119
119
mosh
120
- darksky-weather
121
120
bats-core
122
121
fpp
123
122
pstree
You can’t perform that action at this time.
0 commit comments