fish-theme-nelsonjchen/fish_right_prompt.fish

20 lines
409 B
Fish
Raw Permalink Normal View History

2015-09-27 11:51:48 +02:00
function fish_right_prompt -d "Write out the right prompt"
set -l last_status $status
if test $last_status -ne 0
set_color --bold red
echo -ns $last_status ' :( '
set_color normal
end
# tmux, screen title
switch $TERM;
case xterm'*' vte'*';
printf '\033]0;['(prompt_pwd)']\007';
case screen'*';
printf '\033k['(prompt_pwd)']\033\\';
end
2021-02-06 18:54:17 +01:00
echo -ns (date "+%d/%m/%y")" - "(date "+%H:%M")
2015-09-27 11:51:48 +02:00
end