aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
authorDennis Eriksen <dennis@eriksen.im>2016-06-08 10:52:21 +0200
committerDennis Eriksen <dennis@eriksen.im>2016-06-08 10:52:21 +0200
commit441e2dac1cad2ace12e17a67d5c7dd0961fa4f0d (patch)
tree152cae8acd30c954f1364374c900a5dd28dad501 /prompt_adam3_setup
parentattempting to clean up the git-bit (diff)
downloadadam3-441e2dac1cad2ace12e17a67d5c7dd0961fa4f0d.tar.gz
moving the space again
Diffstat (limited to 'prompt_adam3_setup')
-rw-r--r--prompt_adam3_setup12
1 files changed, 6 insertions, 6 deletions
diff --git a/prompt_adam3_setup b/prompt_adam3_setup
index 54a48d5..a3d13bb 100644
--- a/prompt_adam3_setup
+++ b/prompt_adam3_setup
@@ -64,8 +64,8 @@ prompt_adam3_precmd () {
zstyle ':vcs_info:*' check-for-staged-changes true
zstyle ':vcs_info:*' stagedstr ' S'
zstyle ':vcs_info:*' unstagedstr ' U'
- zstyle ':vcs_info:*' formats "%F{grey}%s %F{green}%b%F{red}%u%c"
- zstyle ':vcs_info:git*' actionformats "%F{grey}%s %r/%S %F{green}%b%F{red}%u%c %a"
+ zstyle ':vcs_info:*' formats "%F{grey}%s %F{green}%b%F{red}%u%c "
+ zstyle ':vcs_info:git*' actionformats "%F{grey}%s %r/%S %F{green}%b%F{red}%u%c%a "
vcs_info
local base_prompt_expanded_no_color base_prompt_etc
local prompt_length space_left promptchar
@@ -77,7 +77,7 @@ prompt_adam3_precmd () {
# Changing the prompt based on the length of the prompt, should happen based
# on how long it actually is. The method below will need to be changed.
if [[ $prompt_length -lt 69 ]]; then
- path_prompt="%B%F{$prompt_adam3_color3}%(4~|...|)%3~%b "
+ path_prompt="%B%F{$prompt_adam3_color3}%(4~|...|)%3~%b"
else
space_left=$(( $COLUMNS - $#base_prompt_expanded_no_color - 2 ))
path_prompt="%B%F{$prompt_adam3_color4}%${space_left}<...<%~$prompt_newline%b"
@@ -86,9 +86,9 @@ prompt_adam3_precmd () {
# make promptchar bold red if root
if [[ $EUID == 0 ]]; then promptchar="%F{red}%B%#%b%f"; else promptchar="%F{white}%B%#%b%f"; fi
- PS1="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%} $promptchar $post_prompt"
- PS2="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%} %_> $post_prompt"
- PS3="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%} ?# $post_prompt"
+ PS1="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%}$promptchar $post_prompt"
+ PS2="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%}%_> $post_prompt"
+ PS3="$base_prompt$path_prompt${vcs_info_msg_0_}%{$reset_color%}?# $post_prompt"
}
prompt_adam3_setup "$@"