Skip to content

Commit

Permalink
fix(zsh): 'exa' is not longer working on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed Aug 22, 2024
1 parent 3777c24 commit 7ca02bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion roles/zsh/files/.zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type=d --hidden --strip-cwd-prefix --exclude .git"

export FZF_CTRL_T_OPTS="--preview 'bat -n --color=always --line-range :500 {}'"
export FZF_ALT_C_OPTS="--preview 'exa --tree --color=always {} | head -200'"
export FZF_ALT_C_OPTS="--preview 'eza --tree --color=always {} | head -200'"
8 changes: 4 additions & 4 deletions roles/zsh/files/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ alias zshc="$EDITOR ~/.zshrc"
[[ ! -x "$(command -v ranger)" ]] || alias rr="ranger"

# ===== Directory aliases =======
if [[ -x "$(command -v exa)" ]]; then
alias ls="exa --icons --classify"
alias ll="exa -l --icons"
alias la="exa -la --icons --classify"
if [[ -x "$(command -v eza)" ]]; then
alias ls="eza --icons --classify"
alias ll="eza -l --icons"
alias la="eza -la --icons --classify"
else
alias ls="ls --color"
alias ll="ls -l --color"
Expand Down

0 comments on commit 7ca02bb

Please sign in to comment.