From 9fff448654308b1e1b3d1129c0255544f56c25cc Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 5 Oct 2022 16:33:10 +0100 Subject: initial --- fish/functions/fish_prompt.fish | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fish/functions/fish_prompt.fish (limited to 'fish/functions/fish_prompt.fish') diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..57a3c21 --- /dev/null +++ b/fish/functions/fish_prompt.fish @@ -0,0 +1,13 @@ +# Defined in /tmp/fish.OarydH/fish_prompt.fish @ line 2 +function fish_prompt --description 'Write out the prompt' + if not set -q __fish_prompt_normal + set -g __fish_prompt_normal (set_color normal) + end + + if not set -q __fish_prompt_cwd + set -g __fish_prompt_cwd (set_color $fish_color_cwd) + end + + # echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) (__fish_vcs_prompt) "$__fish_prompt_normal" ' ' (task +in +PENDING count) '> ' + echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) (__fish_vcs_prompt) "$__fish_prompt_normal"'> ' +end -- cgit v1.2.3