Skip to content

Commit

Permalink
remove vim prehooks
Browse files Browse the repository at this point in the history
  • Loading branch information
zakaria-fadli-netatmo committed Oct 23, 2024
1 parent 250aa8e commit 9005a67
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions shell/system_aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,10 @@ alias cd="cd -P"
[[ $(uname -m) == "x86_64" ]] && alias ls="exa"
[[ $(uname -m) == "x86_64" ]] && alias diff="difft"

function vim_prehooks
{
if [[ -z $OPENAI_API_KEY ]]; then
echo "Loading pass ..."
OPENAI_API_KEY="$(pass OPENAI_API_KEY)"
export OPENAI_API_KEY
fi
return
}

alias grep="rg"
alias sg="ast-grep"
alias vim="vim_prehooks; nvim"
alias vim="nvim"
alias v="vim"
alias vc="vim --clean"

Expand Down

0 comments on commit 9005a67

Please sign in to comment.