Stops theme breaking on root directory

This commit is contained in:
Steve Mckellar 2014-11-03 20:21:56 +00:00
parent f93908e7aa
commit f6add7549b

View file

@ -10,11 +10,17 @@ set __toaster_color_lilac AE81FF
function __toaster_color_echo function __toaster_color_echo
set_color $argv[1] set_color $argv[1]
echo -n $argv[2] if test (count $argv) -eq 2
echo -n $argv[2]
end
end end
function __toaster_current_folder function __toaster_current_folder
echo -n $PWD | grep -o -E '[^\/]+$' if test $PWD = '/'
echo -n '/'
else
echo -n $PWD | grep -o -E '[^\/]+$'
end
end end
function __toaster_git_status_codes function __toaster_git_status_codes