kb:tools:fish:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
kb:tools:fish:start [4 weeks ago (10 February 2025)] – [Others] justin | kb:tools:fish:start [3 weeks ago (19 February 2025)] (current) – [Others] justin | ||
---|---|---|---|
Line 35: | Line 35: | ||
* VSCode' | * VSCode' | ||
+ | * Installing fish on old OpenSUSE might be a bit difficult (fish: | ||
+ | * First to resolve is the automated web browser opening requirement, | ||
+ | * Extract the localhost path stored in **/ | ||
+ | * Prompt may fail when using the web config. Insert it manually at **.config/ | ||
+ | |||
+ | <file fish .config/ | ||
+ | function fish_prompt --description ' | ||
+ | #Save the return status of the previous command | ||
+ | set -l last_pipestatus $pipestatus | ||
+ | set -lx __fish_last_status $status # Export for __fish_print_pipestatus. | ||
+ | |||
+ | if functions -q fish_is_root_user; | ||
+ | printf '%s@%s %s%s%s# ' $USER (prompt_hostname) (set -q fish_color_cwd_root | ||
+ | and set_color $fish_color_cwd_root | ||
+ | or set_color $fish_color_cwd) \ | ||
+ | (prompt_pwd) (set_color normal) | ||
+ | else | ||
+ | set -l status_color (set_color $fish_color_status) | ||
+ | set -l statusb_color (set_color --bold $fish_color_status) | ||
+ | #set -l pipestatus_string (__fish_print_pipestatus " | ||
+ | |||
+ | printf '[%s] %s%s@%s %s%s %s \n> ' \ | ||
+ | (date " | ||
+ | (set_color brred) $USER (prompt_hostname) \ | ||
+ | (set_color $fish_color_cwd) (prompt_pwd) \ | ||
+ | (set_color normal) | ||
+ | end | ||
+ | end | ||
+ | </ |
kb/tools/fish/start.txt · Last modified: 3 weeks ago (19 February 2025) by justin