Skip to content

Commit

Permalink
make dircolors command safe
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jun 12, 2022
1 parent cfc1325 commit 35ce4c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .exports
Expand Up @@ -13,8 +13,9 @@ export HOMEBREW_CASK_OPTS="--appdir=/Applications"
# here's LS_COLORS
# github.com/trapd00r/LS_COLORS
command -v gdircolors >/dev/null 2>&1 || alias gdircolors="dircolors"
eval "$(gdircolors -b ~/.dircolors)"

if which gdircolors > /dev/null; then
eval "$(gdircolors -b ~/.dircolors)"
fi

# fzf should be populated via the silver searcher (to respect gitignore and be faster): https://github.com/junegunn/fzf#respecting-gitignore
# note.. without `ag` this is a good fallback: export FZF_DEFAULT_COMMAND='fd --type f'
Expand Down

0 comments on commit 35ce4c8

Please sign in to comment.