Skip to content

Commit

Permalink
change: userhost separator and group separator
Browse files Browse the repository at this point in the history
Signed-off-by: Beau Hastings <[email protected]>
  • Loading branch information
hastinbe committed Oct 22, 2020
1 parent 8998e3c commit 1c112c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ set -g theme_prompt_char_superuser '#'
set -g theme_prompt_char "$theme_prompt_char_normal"
set -g theme_prompt_superuser_glyph \u2605
set -g theme_prompt_userhost_separator ':'
set -g theme_prompt_userhost_separator '@'
set -g theme_prompt_group_separator ':'
set -g theme_prompt_segment_separator_char ' '
set -g theme_prompt_segment_separator_color normal
Expand Down
7 changes: 4 additions & 3 deletions fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ __default_var theme_prompt_char_superuser '#'
__default_var theme_prompt_char "$theme_prompt_char_normal"

__default_var theme_prompt_superuser_glyph \u2605
__default_var theme_prompt_userhost_separator ':'
__default_var theme_prompt_userhost_separator '@'
__default_var theme_prompt_group_separator ':'

__default_var theme_prompt_segment_separator_char ' '
__default_var theme_prompt_segment_separator_color normal
Expand Down Expand Up @@ -222,12 +223,12 @@ function __theme_print_userhost
echo -ns (__theme_print_superuser) (__theme_print_user) (__theme_reset_color)

if [ "$theme_display_group" != 'no' ]
print_colored $theme_prompt_userhost_separator $theme_color_separator
print_colored $theme_prompt_group_separator $theme_color_separator
print_colored (id -gn) $theme_color_group
end

if [ "$theme_display_hostname" != 'no' ]
print_colored "@" $theme_color_separator
print_colored $theme_prompt_userhost_separator $theme_color_separator
print_colored (prompt_hostname) $theme_color_host
end
end
Expand Down

0 comments on commit 1c112c6

Please sign in to comment.