From add68f9720d948c5d84528c0badc3956550ce2cc Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 28 Mar 2024 15:40:42 +0200 Subject: [PATCH] fish: some prompt changes --- cli/.config/fish/conf.d/prompt.fish | 4 +--- cli/.config/fish/functions/prompt.bang.fish | 2 +- cli/.config/fish/functions/prompt.fishes.fish | 4 ++++ 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 cli/.config/fish/functions/prompt.fishes.fish 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