From bcf90f9c7893f2c711bd8a13bd4d78f9dd211db2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 6 Feb 2016 20:49:39 +0100 Subject: Add current time to rhs of custom fish prompt --- fish/.config/fish/config.fish | 2 +- fish/.config/fish/functions/fish_prompt.fish | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'fish') diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 49831ce..4a674cb 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -1,7 +1,7 @@ umask 0077 set EDITOR vim -set PATH $PATH /usr/local/texlive/2014/bin/x86_64-linux +set PATH $PATH /usr/local/bin/ /usr/local/texlive/2014/bin/x86_64-linux set fish_greeting "" diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish index bcf8ef7..076eeae 100644 --- a/fish/.config/fish/functions/fish_prompt.fish +++ b/fish/.config/fish/functions/fish_prompt.fish @@ -31,3 +31,9 @@ function fish_prompt echo -n -s ' ▸ ' end end + +function fish_right_prompt + set_color $fish_color_autosuggestion + date '+%H:%M:%S' + set_color normal +end -- cgit v1.2.3