Update some python and ruby configs
This commit is contained in:
		
							parent
							
								
									705c726b06
								
							
						
					
					
						commit
						67db15b05b
					
				
					 3 changed files with 8 additions and 2 deletions
				
			
		|  | @ -89,6 +89,6 @@ if zle -l tmsu-fzf-change-directory; then | ||||||
|     bindkey "^t" tmsu-fzf-change-directory |     bindkey "^t" tmsu-fzf-change-directory | ||||||
| fi | 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 | zle -N zle-venv | ||||||
| bindkey "\ev" zle-venv | bindkey "\ev" zle-venv | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								env/50_ruby.zsh
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								env/50_ruby.zsh
									
										
									
									
										vendored
									
									
								
							|  | @ -2,3 +2,7 @@ if exists gem; then | ||||||
| 	RUBY_VERSION=${$(gem environment gemdir):t} | 	RUBY_VERSION=${$(gem environment gemdir):t} | ||||||
| 	export PATH="$PATH:$HOME/.gem/ruby/$RUBY_VERSION/bin" | 	export PATH="$PATH:$HOME/.gem/ruby/$RUBY_VERSION/bin" | ||||||
| fi | fi | ||||||
|  | 
 | ||||||
|  | if [[ -d $HOME/.rvm/bin ]]; then | ||||||
|  | 	export PATH="$PATH:$HOME/.rvm/bin" | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | @ -1,8 +1,10 @@ | ||||||
| export PYENV_ROOT=${XDG_DATA_HOME:-$HOME/.local/share}/pyenv | export PYENV_ROOT=${XDG_DATA_HOME:-$HOME/.local/share}/pyenv | ||||||
| _init_pyenv() { | _init_pyenv() { | ||||||
|     unfunction pyenv |     unfunction pyenv | ||||||
|     export PATH="$PATH:$PYENV_ROOT/bin" |     export PATH="$PYENV_ROOT/bin:$PATH" | ||||||
|  |     eval "$(pyenv init --path)" | ||||||
|     eval "$(pyenv init -)" |     eval "$(pyenv init -)" | ||||||
|  |     source $(pyenv root)/completions/pyenv.zsh | ||||||
|     if pyenv commands | grep -q 'virtualenv'; then |     if pyenv commands | grep -q 'virtualenv'; then | ||||||
| 	eval "$(pyenv virtualenv-init -)" | 	eval "$(pyenv virtualenv-init -)" | ||||||
|     fi |     fi | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 crater2150
						crater2150