Skip to content

Commit

Permalink
set EDITOR to nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Mar 14, 2024
1 parent b0dd044 commit 5bfd526
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
9 changes: 4 additions & 5 deletions aliasrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ alias k='kubectl'
alias mux='tmuxinator'
alias tf='terraform'

if [[ -v VI ]]; then
alias vi=$VI
fi

if [[ "$OSTYPE" == darwin* ]]; then
alias ls='ls -G'
export LSCOLORS=gxfxcxdxbxegedabagacad
fi

if [[ -f "/Applications/MacVim.app/Contents/MacOS/Vim" ]]; then
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
alias vi='vim'
fi

tox() {
if [[ -z "$TOX_PATH" && -x $(command -v pyenv) ]]; then
for pyv in $(pyenv versions --bare); do
Expand Down
15 changes: 10 additions & 5 deletions zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ if [[ "$OSTYPE" == darwin* ]]; then
fi

# Editors
if [[ -f "/Applications/MacVim.app/Contents/MacOS/Vim" ]]; then
export EDITOR='/Applications/MacVim.app/Contents/MacOS/Vim'
else
export EDITOR='vi'
VI='vi'
if type nvim > /dev/null; then
VI='nvim'
elif type /opt/homebrew/bin/nvim > /dev/null; then
VI='/opt/homebrew/bin/nvim'
elif type vim > /dev/null; then
VI='vim'
fi
export VISUAL=$EDITOR
export VI
export EDITOR=$VI
export VISUAL=$VI
export PAGER='less'

# map kubeconfig to KUBECONFIG
Expand Down

0 comments on commit 5bfd526

Please sign in to comment.