From 4a1b1a37e21f8cdd8f0eebf3dd5b49df7a993b3e Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 21 Nov 2022 19:18:29 -0800 Subject: [PATCH] starship --- modules/prompt/functions/prompt_starship_setup | 1 + runcoms/zpreztorc | 2 +- runcoms/zshrc | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 modules/prompt/functions/prompt_starship_setup diff --git a/modules/prompt/functions/prompt_starship_setup b/modules/prompt/functions/prompt_starship_setup new file mode 100644 index 0000000..af75929 --- /dev/null +++ b/modules/prompt/functions/prompt_starship_setup @@ -0,0 +1 @@ +eval "$(starship init zsh)" diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index b36a79a..7eb6f63 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -138,7 +138,7 @@ zstyle ':prezto:module:git:status:ignore' submodules 'all' # Set the prompt theme to load. # Setting it to 'random' loads a random theme. # Auto set to 'off' on dumb terminals. -zstyle ':prezto:module:prompt' theme 'pure' +zstyle ':prezto:module:prompt' theme 'starship' # Set the working directory prompt display length. # By default, it is set to 'short'. Set it to 'long' (without '~' expansion) diff --git a/runcoms/zshrc b/runcoms/zshrc index b1c519e..b1da114 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -26,6 +26,7 @@ unsetopt correct # Don't autocorrect unsetopt flowcontrol # So ^S and ^Q can be used setopt no_nomatch # Pass bad matches on setopt no_share_history +setopt prompt_subst interactive_comments # Starship: https://github.com/sorin-ionescu/prezto/issues/1887#issuecomment-1040761561 bindkey "\ep" history-beginning-search-backward bindkey "\en" history-beginning-search-forward