1
0
mirror of https://gitlab.com/baco/dotconf.git synced 2024-06-14 20:26:36 +00:00
dotfiles/fish/prompt_layout_setup.txt

24 lines
1.4 KiB
Plaintext

diff --git a/usr/share/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish
index 91f4365..db7ea2b 100644
--- a/usr/share/fish/functions/fish_prompt.fish
+++ b/fish/functions/fish_prompt.fish
@@ -8,7 +8,7 @@ function fish_prompt --description 'Write out the prompt'
# Color the prompt differently when we're root
set -l color_cwd $fish_color_cwd
set -l prefix
- set -l suffix '>'
+ set -l suffix '$'
if contains -- $USER root toor
if set -q fish_color_cwd_root
set color_cwd $fish_color_cwd_root
@@ -23,7 +23,7 @@ function fish_prompt --description 'Write out the prompt'
end
# Write pipestatus
- set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
+ set -l prompt_status (__fish_print_pipestatus "[" "] " "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
- echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $color_host) (prompt_hostname) $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal $prompt_status $suffix " "
+ echo -n -s $prompt_status (set_color $fish_color_user) "$USER" $normal @ (set_color $color_host) (prompt_hostname) $normal ':' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal $suffix " "
end