Fix: pipestatus order
This commit is contained in:
@@ -19,8 +19,11 @@ function fish_prompt --description 'Informative prompt'
|
|||||||
set -l git_root_basename (basename "$git_root")
|
set -l git_root_basename (basename "$git_root")
|
||||||
set cwd (string replace --regex "^$git_root" "($git_root_basename)" "$cwd")
|
set cwd (string replace --regex "^$git_root" "($git_root_basename)" "$cwd")
|
||||||
end
|
end
|
||||||
printf '[%s] %s%s@%s %s%s %s%s%s%s%s \n> ' (date "+%H:%M:%S") (set_color brblue) \
|
printf '[%s] %s%s@%s %s%s %s%s%s %s%s\n> ' (date "+%H:%M:%S") \
|
||||||
$USER (prompt_hostname) (set_color $fish_color_cwd) $cwd $pipestatus_string \
|
(set_color brblue) $USER (prompt_hostname) \
|
||||||
(set_color yellow) (string trim -l (fish_git_prompt)) (set_color normal)
|
(set_color $fish_color_cwd) $cwd \
|
||||||
|
(set_color yellow) (string trim -l (fish_git_prompt)) \
|
||||||
|
$pipestatus_string \
|
||||||
|
(set_color normal)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user