From 6fc921bd2bab22bc9398a8cbc301152062a9a676 Mon Sep 17 00:00:00 2001 From: c Date: Mon, 14 Aug 2023 02:14:02 -0500 Subject: [PATCH] zshrc --- zsh/.zshrc | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 9b8a090..14947c5 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -5,7 +5,11 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi -#USE_POWERLINE="true" +# import keys +if [ -f ~/.keys ]; then + . ~/.keys + echo "keys loaded" +fi # aliases alias python="/Library/Frameworks/Python.framework/Versions/3.10/bin/python3" @@ -40,8 +44,7 @@ export SAVEHIST=10000 setopt INC_APPEND_HISTORY setopt HIST_IGNORE_DUPS bindkey '^R' history-incremental-search-backward -# setopt share_history - +setopt share_history # auto complete autoload -Uz compinit @@ -58,5 +61,18 @@ source ~/powerlevel10k/powerlevel10k.zsh-theme # auto cd setopt auto_cd -nitch +# pyenv stuff +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +export PYENV_VIRTUALENV_DISABLE_PROMPT=1 +export PYTHONPATH="." +eval "$(pyenv init --path)" +eval "$(pyenv init -)" +# eval "$(pyenv virtualenv-init -)" + + +source ~/powerlevel10k/powerlevel10k.zsh-theme + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh