.bashrc: set up Homebrew before the tools section

This commit is contained in:
Ryan Cavicchioni 2025-05-15 10:03:13 -05:00
parent 99001c45f5
commit 16c2a7fa30
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg

23
.bashrc
View File

@ -49,17 +49,10 @@ HISTFILESIZE=$HISTSIZE
HISTCONTROL=ignorespace:ignoredups
shopt -s histappend
if command -v nvim > /dev/null; then
success "setting EDITOR to nvim"
export EDITOR=nvim
success "setting MANPAGER viewer to nvim"
export MANPAGER="nvim +Man!"
else
warn "nvim not found"
fi
# OS specific environment
#
# This should be executed before the tools section, especially if we are using
# tools from Homebrew
case "$OSTYPE" in
darwin*)
# Homebrew
@ -84,6 +77,16 @@ esac
# Tools
if command -v nvim > /dev/null; then
success "setting EDITOR to nvim"
export EDITOR=nvim
success "setting MANPAGER viewer to nvim"
export MANPAGER="nvim +Man!"
else
warn "nvim not found"
fi
# fzf
if command -v fzf > /dev/null; then
eval "$(fzf "--$(basename "$SHELL")")"