Add rbenv; remove old go and ruby zsh shims
This commit is contained in:
parent
4334c8c03b
commit
dfc3511aa3
4
zsh.d/rbenv.zsh
Normal file
4
zsh.d/rbenv.zsh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Enable goenv if it is installed
|
||||||
|
if (( $+commands[rbenv] )); then
|
||||||
|
eval "$(rbenv init -)"
|
||||||
|
fi
|
12
zshenv.zsh
12
zshenv.zsh
@ -19,18 +19,6 @@ fpath+=(~/.zsh/completions)
|
|||||||
# Setup cargo
|
# Setup cargo
|
||||||
[[ -s ~/.cargo/env ]] && source ~/.cargo/env
|
[[ -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
|
if (( $+commands[fd] )); then
|
||||||
export FZF_DEFAULT_COMMAND="fd --type f"
|
export FZF_DEFAULT_COMMAND="fd --type f"
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user