pyenv
This commit is contained in:
parent
9e56e7ba85
commit
3ed8025e04
31
.zshrc
31
.zshrc
|
@ -42,7 +42,7 @@ alias open=xdg-open
|
||||||
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
|
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
|
||||||
function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" }
|
function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" }
|
||||||
function smallfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" }
|
function smallfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" }
|
||||||
function cachekeys () { exec 2>/dev/null;
|
function cachekeys () { exec 2>/dev/null;
|
||||||
eval $(ssh-agent)
|
eval $(ssh-agent)
|
||||||
ssh-add ~/.ssh/id_rsa
|
ssh-add ~/.ssh/id_rsa
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ setopt hist_verify # show command with history expansion to user befo
|
||||||
|
|
||||||
### --- Inputs Config ------------------------------------
|
### --- Inputs Config ------------------------------------
|
||||||
# vim keys, then override stuff.
|
# vim keys, then override stuff.
|
||||||
bindkey -v
|
bindkey -v
|
||||||
bindkey "^[[1;5C" forward-word
|
bindkey "^[[1;5C" forward-word
|
||||||
bindkey "^[[1;5D" backward-word
|
bindkey "^[[1;5D" backward-word
|
||||||
bindkey -s "^X" 'n^M'
|
bindkey -s "^X" 'n^M'
|
||||||
|
@ -198,24 +198,6 @@ else
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### --- conda Config -------------------------------------
|
|
||||||
# >>> conda initialize >>>
|
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
|
||||||
__conda_setup="$('/home/plex/.local/share/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
eval "$__conda_setup"
|
|
||||||
else
|
|
||||||
if [ -f "/home/plex/.local/share/miniconda3/etc/profile.d/conda.sh" ]; then
|
|
||||||
. "/home/plex/.local/share/miniconda3/etc/profile.d/conda.sh"
|
|
||||||
else
|
|
||||||
export PATH="/home/plex/.local/share/miniconda3/bin:$PATH"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
unset __conda_setup
|
|
||||||
# <<< conda initialize <<<
|
|
||||||
# we don't want to see (base) constantly, so we do this:
|
|
||||||
PS1=$(echo $PS1 | sed 's/(base) //') # remove base
|
|
||||||
|
|
||||||
### load unversioned zsh code
|
### load unversioned zsh code
|
||||||
if [ -f ~/.zsh.local ]; then
|
if [ -f ~/.zsh.local ]; then
|
||||||
source ~/.zsh.local
|
source ~/.zsh.local
|
||||||
|
@ -223,3 +205,12 @@ else
|
||||||
touch ~/.zsh.local
|
touch ~/.zsh.local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### --- pyenv Config -------------------------------------
|
||||||
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
eval "$(pyenv init -)"
|
||||||
|
if pyenv activate std; then
|
||||||
|
;
|
||||||
|
else
|
||||||
|
pyenv virtualenv std && pyenv activate std
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue