From 93326b3a9aad6232e2730edfa240e21e0c0d2ffa Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 Nov 2021 15:34:37 +0100 Subject: [PATCH] Add custom fish prompt --- fish_prompt.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fish_prompt.fish diff --git a/fish_prompt.fish b/fish_prompt.fish new file mode 100644 index 0000000..3cc7a68 --- /dev/null +++ b/fish_prompt.fish @@ -0,0 +1,7 @@ +function fish_prompt --description 'Screen Savvy prompt' + if test -z "$WINDOW" + printf '%s%s@%s%s%s%s%s> ' (set_color yellow) $USER (set_color purple) (prompt_hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) + else + printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) $USER (set_color purple) (prompt_hostname) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) + end +end