diff --git a/cli/.config/fish/conf.d/prompt.fish b/cli/.config/fish/conf.d/prompt.fish index 9a9bab2..a9c7d0c 100644 --- a/cli/.config/fish/conf.d/prompt.fish +++ b/cli/.config/fish/conf.d/prompt.fish @@ -1,6 +1,4 @@ -# some flair with randomized fish emoji: fish, tropical fish and blowfish -set fishes \U1f41f \U1f420 \U1f421 - +set bang_symbol \u276f set git_sign \ue0a0 set color_git_branch brblack diff --git a/cli/.config/fish/functions/prompt.bang.fish b/cli/.config/fish/functions/prompt.bang.fish index 8108b25..d74dde5 100644 --- a/cli/.config/fish/functions/prompt.bang.fish +++ b/cli/.config/fish/functions/prompt.bang.fish @@ -1,6 +1,6 @@ function prompt.bang if ! string match -eq linux $TERM - prompt.add \n$fishes[(random 1 (count $fishes))]\ + prompt.add \n$bang_symbol\ black else prompt.add \n\#\ brred end diff --git a/cli/.config/fish/functions/prompt.fishes.fish b/cli/.config/fish/functions/prompt.fishes.fish new file mode 100644 index 0000000..413c2ec --- /dev/null +++ b/cli/.config/fish/functions/prompt.fishes.fish @@ -0,0 +1,4 @@ +function prompt.fishes + set fishes \U1f41f \U1f420 \U1f421 + printf $fishes[(random 1 (count $fishes))] +end