Add rbenv; remove old go and ruby zsh shims

This commit is contained in:
Daniel Lynn 2025-05-01 23:13:13 -05:00
parent 4334c8c03b
commit dfc3511aa3
Signed by: daniel
GPG Key ID: 655C07B9B3DDC88B
2 changed files with 4 additions and 12 deletions

4
zsh.d/rbenv.zsh Normal file
View File

@ -0,0 +1,4 @@
# Enable goenv if it is installed
if (( $+commands[rbenv] )); then
eval "$(rbenv init -)"
fi

View File

@ -19,18 +19,6 @@ fpath+=(~/.zsh/completions)
# Setup cargo
[[ -s ~/.cargo/env ]] && source ~/.cargo/env
# Local gems
if (( $+commands[ruby] )); then
local gem_bin_path="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin"
[[ -d "$gem_bin_path" ]] && path+=("$gem_bin_path")
fi
# Setup go paths
if (( $+commands[go] )); then
local go_bin_path="$(go env GOPATH)/bin"
[[ -d "$go_bin_path" ]] && path+=("$go_bin_path")
fi
if (( $+commands[fd] )); then
export FZF_DEFAULT_COMMAND="fd --type f"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"