update to fish

This commit is contained in:
2025-01-24 13:03:32 +00:00
parent 82f5e44d5b
commit db8f9208b9
10 changed files with 2245 additions and 31 deletions

View File

@@ -16,8 +16,8 @@ function fish_prompt --description 'Informative prompt'
set -l pipestatus_string (__fish_print_pipestatus "[" "] " "|" (set_color $fish_color_status) \
(set_color --bold $fish_color_status) $last_pipestatus)
printf '[%s] %s%s@%s %s\f\r%s%s%s > ' (date "+%H:%M:%S") (set_color brblue) \
$USER (prompt_hostname) $pipestatus_string \
(set_color $fish_color_cwd) (pwd | sed "s/^\/home\/$USER/~/") (set_color normal)
printf '%s %s %s%s%s > ' (printf "[%s]" (date "+%H:%M:%S") | trans-text -) \
(printf "%s@%s" $USER (prompt_hostname) | trans-text -) "$pipestatus_string" \
(pwd | sed "s/^\/home\/$USER/~/" | tr -d '\n' | trans-text - ) (set_color normal)
end
end