From abbd2703ef1e40b0aeb08662ea8a038a8693c480 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 5294597..4f63ea8 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -150,7 +150,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