Skip to content

Commit bf53f3a

Browse files
committed
add pyenv pluging to zsh
1 parent e6810f7 commit bf53f3a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.zprofile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export PYENV_ROOT="$HOME/.pyenv"
2+
export PATH="$PYENV_ROOT/bin:$PATH"
3+
eval "$(pyenv init --path)"
4+
eval "$(pyenv init -)"

.zshrc

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export ZSH="/home/$USER/.oh-my-zsh"
1717
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
1818
ZSH_THEME="powerlevel10k/powerlevel10k"
1919

20+
21+
[[ ! -f ~/.zprofile ]] || source ~/.zprofile
22+
2023
# Set list of themes to pick from when loading at random
2124
# Setting this variable when ZSH_THEME=random will cause zsh to load
2225
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
@@ -95,6 +98,7 @@ plugins=(
9598
mvn
9699
pip
97100
python
101+
pyenv
98102
sudo
99103
vim-interaction
100104
python
@@ -160,3 +164,4 @@ complete -C '/usr/bin/aws_completer' aws
160164

161165
# -*- k3d completion for zsh -*-
162166
[[ ! -f ~/.zsh/k3d.zsh ]] || source ~/.zsh/k3d.zsh
167+

0 commit comments

Comments
 (0)