diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-08-31 17:01:14 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-08-31 17:01:14 -0500 |
commit | 21a1e442ea40ea6e40ffd2db9755a252d59f86fb (patch) | |
tree | 731ef852aeec77559eb6865e28e23e7082502cdf /zsh/.config/zsh/.zshrc | |
parent | update dotfiles ig (diff) | |
download | dotfiles-21a1e442ea40ea6e40ffd2db9755a252d59f86fb.tar dotfiles-21a1e442ea40ea6e40ffd2db9755a252d59f86fb.tar.gz dotfiles-21a1e442ea40ea6e40ffd2db9755a252d59f86fb.tar.bz2 dotfiles-21a1e442ea40ea6e40ffd2db9755a252d59f86fb.tar.lz dotfiles-21a1e442ea40ea6e40ffd2db9755a252d59f86fb.tar.xz dotfiles-21a1e442ea40ea6e40ffd2db9755a252d59f86fb.tar.zst dotfiles-21a1e442ea40ea6e40ffd2db9755a252d59f86fb.zip |
e
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'zsh/.config/zsh/.zshrc')
-rw-r--r-- | zsh/.config/zsh/.zshrc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index f437896..bd227e6 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -1,5 +1,5 @@ -eval "$(antidot init)" -eval "$(lesspipe.sh)" +[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)" + # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. @@ -7,6 +7,9 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi +eval "$(antidot init)" +eval "$(lesspipe.sh)" + # Luke's config for the Zoomer Shell source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme @@ -23,15 +26,12 @@ HISTSIZE=10000000 SAVEHIST=10000000 HISTFILE=~/.cache/zsh/history - # Load aliases and shortcuts if existent. [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/.zshopts" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/.zshopts" - - # Basic auto/tab complete: fpath=(~/.config/zsh/completions $fpath) autoload -U compinit @@ -60,3 +60,6 @@ compctl -K _dotnet_zsh_complete dotnet # Load syntax highlighting; should be last. source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh 2>/dev/null + +# To customize prompt, run `p10k configure` or edit ~/.dot/zsh/.config/zsh/.p10k.zsh. +[[ ! -f ~/.dot/zsh/.config/zsh/.p10k.zsh ]] || source ~/.dot/zsh/.config/zsh/.p10k.zsh |