.bashrc: set up Homebrew before the tools section
This commit is contained in:
parent
99001c45f5
commit
16c2a7fa30
23
.bashrc
23
.bashrc
@ -49,17 +49,10 @@ HISTFILESIZE=$HISTSIZE
|
|||||||
HISTCONTROL=ignorespace:ignoredups
|
HISTCONTROL=ignorespace:ignoredups
|
||||||
shopt -s histappend
|
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
|
# OS specific environment
|
||||||
|
#
|
||||||
|
# This should be executed before the tools section, especially if we are using
|
||||||
|
# tools from Homebrew
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
darwin*)
|
darwin*)
|
||||||
# Homebrew
|
# Homebrew
|
||||||
@ -84,6 +77,16 @@ esac
|
|||||||
|
|
||||||
# Tools
|
# 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
|
# fzf
|
||||||
if command -v fzf > /dev/null; then
|
if command -v fzf > /dev/null; then
|
||||||
eval "$(fzf "--$(basename "$SHELL")")"
|
eval "$(fzf "--$(basename "$SHELL")")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user