Skip to content

Commit

Permalink
fix: removed unused bits. fixted fzf/bat integration
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-brown committed May 1, 2024
1 parent dda491a commit b0ef7a2
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,25 @@ export PATH="$HOME/.local/bin:$PATH"
setopt RM_STAR_WAIT # pause before confirming rm *
setopt clobber # turn off zsh: file exists warning

# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

# Google Cloud
# The next line updates PATH for the Google Cloud SDK.
if [ -f $HOME/bin/google-cloud-sdk/path.zsh.inc ]; then . $HOME/bin/google-cloud-sdk/path.zsh.inc; fi

# The next line enables shell command completion for gcloud.
if [ -f $HOME/bin/google-cloud-sdk/completion.zsh.inc ]; then . $HOME/bin/google-cloud-sdk/completion.zsh.inc; fi

export CLOUDSDK_PYTHON=python2

# zoxide
eval "$(zoxide init zsh)"

export PATH="$HOME/.poetry/bin:$PATH"

# fzf
eval "$(fzf --zsh)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --no-ignore-vcs'
# export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS='--height=70% --layout=reverse" --preview="bat --style=numbers --color=always {}"'
export FZF_DEFAULT_OPTS='--height=70% --layout=reverse'
export FZF_CTRL_T_OPTS="
--walker-skip .git,node_modules,target
--preview 'bat -n --color=always {}'
--bind 'ctrl-/:change-preview-window(down|hidden|)'"

# poetry
export PATH="$HOME/.poetry/bin:$PATH"
fpath+=~/.zfunc
autoload -Uz compinit && compinit

0 comments on commit b0ef7a2

Please sign in to comment.