Created
March 14, 2024 08:46
-
-
Save ricky9w/99c07d11aee251591d778cf9440fab37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## powerlevel10k and znap | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
[[ -r ~/.config/zsh/znap/znap.zsh ]] || | |
git clone --depth 1 -- \ | |
https://github.com/marlonrichert/zsh-snap.git ~/.config/zsh/znap | |
source ~/.config/zsh/znap/znap.zsh # Start Znap | |
znap source romkatv/powerlevel10k # use powerlevel10k | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
## Other plugins | |
znap source zsh-users/zsh-autosuggestions | |
znap source zsh-users/zsh-syntax-highlighting | |
# Plugins from oh-my-zsh | |
znap source ohmyzsh/ohmyzsh \ | |
lib/completion \ | |
lib/directories \ | |
lib/git \ | |
lib/history \ | |
plugins/git | |
## iTerm2 settings | |
export CLICOLOR=1 | |
export TERM=xterm-256color | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" | |
## pyenv settings | |
export PYENV_ROOT="$HOME/.pyenv" | |
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" | |
if [ -d "$PYENV_ROOT" ]; then | |
znap eval pyenv-init "pyenv init -" | |
znap source michaelaquilina/zsh-autoswitch-virtualenv | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment