Use znap prompt
This commit is contained in:
parent
5a55e90b33
commit
2e0b6ebd78
1 changed files with 5 additions and 3 deletions
|
@ -44,6 +44,7 @@ path=("$HOME/bin" "$HOME/go/bin" $path)
|
|||
local ZSH_PLUGIN_DIR="$HOME/.zsh_plugins"
|
||||
zstyle ':znap:*' repos-dir "${ZSH_PLUGIN_DIR}"
|
||||
zstyle ':znap:*' auto-compile no
|
||||
autoload -Uz add-zle-hook-widget
|
||||
|
||||
local ZSH_PLUGIN_DIR="$HOME/.zsh_plugins"
|
||||
if [[ ! -d "${ZSH_PLUGIN_DIR}/zsh-snap" ]]; then
|
||||
|
@ -83,11 +84,12 @@ autoload -Uz promptinit
|
|||
promptinit
|
||||
|
||||
if [[ $(whence -p starship 2> /dev/null) ]]; then
|
||||
znap eval starship-init "starship init zsh --print-full-init"
|
||||
znap eval starship 'starship init zsh --print-full-init'
|
||||
znap prompt
|
||||
else
|
||||
if [[ ( $ZNAP_USED = 1 ) ]]; then
|
||||
znap clone https://github.com/denysdovhan/spaceship-prompt
|
||||
znap prompt spaceship-prompt
|
||||
znap prompt spaceship-prompt
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -138,7 +140,7 @@ export PATH
|
|||
|
||||
##THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
||||
export SDKMAN_DIR="$HOME/.sdkman"
|
||||
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && znap eval sdkman-init "cat $HOME/.sdkman/bin/sdkman-init.sh; echo \"echo \"SDKMAN: $SDKMAN_VERSION\"\""
|
||||
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && znap eval sdkman-init "cat $HOME/.sdkman/bin/sdkman-init.sh # $SDKMAN_VERSION"
|
||||
|
||||
if [[ -a $HOME/.zshsrc ]]; then
|
||||
source $HOME/.zshsrc
|
||||
|
|
Loading…
Add table
Reference in a new issue