Update some python and ruby configs

This commit is contained in:
crater2150 2021-12-03 15:09:12 +01:00
parent 705c726b06
commit 67db15b05b
3 changed files with 8 additions and 2 deletions

View file

@ -89,6 +89,6 @@ if zle -l tmsu-fzf-change-directory; then
bindkey "^t" tmsu-fzf-change-directory
fi
zle-venv() { zle push-line; BUFFER="venv -t"; zle accept-line }
zle-venv() { zle push-line; BUFFER="venv"; zle accept-line }
zle -N zle-venv
bindkey "\ev" zle-venv

4
env/50_ruby.zsh vendored
View file

@ -2,3 +2,7 @@ if exists gem; then
RUBY_VERSION=${$(gem environment gemdir):t}
export PATH="$PATH:$HOME/.gem/ruby/$RUBY_VERSION/bin"
fi
if [[ -d $HOME/.rvm/bin ]]; then
export PATH="$PATH:$HOME/.rvm/bin"
fi

View file

@ -1,8 +1,10 @@
export PYENV_ROOT=${XDG_DATA_HOME:-$HOME/.local/share}/pyenv
_init_pyenv() {
unfunction pyenv
export PATH="$PATH:$PYENV_ROOT/bin"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
source $(pyenv root)/completions/pyenv.zsh
if pyenv commands | grep -q 'virtualenv'; then
eval "$(pyenv virtualenv-init -)"
fi