From 3d186dc1129453af550d5ecf9fec6395bc28a27c Mon Sep 17 00:00:00 2001 From: Nelson Chen Date: Tue, 6 Jan 2015 02:14:59 -0800 Subject: [PATCH] More polyfill stubs added --- fish_prompt.fish | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 2e42746..9c03087 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -6,13 +6,17 @@ function __caret_color end end +function __return_code + echo "unimpted" +end + function fish_prompt - echo (set_color -o cyan)(whoami)(set_color normal)(set_color yellow)@(set_color -o blue)(hostname| cut -d . -f 1)(set_color normal):(pwd) + echo (set_color -o cyan)(whoami)(set_color normal)(set_color yellow)@(set_color -o blue)(hostname| cut -d . -f 1)(set_color normal):(set_color -o green)(__zsh_percent_tilde)(set_color normal) echo -n (set_color (__caret_color))(__zsh_percent_hash)' '(set_color normal) end function fish_right_prompt -d "Write out the right prompt" - date "+%m/%d/%y" + echo -ns (__return_code)" "(date "+%D")" - "(date "+%T") end ### Polyfills @@ -22,7 +26,7 @@ end # It's like prompt_pwd, but not exactly. function __zsh_percent_tilde - echo -n "unimplemented" + pwd end # $ for luser, # for superuser