Commit dbecd88f authored by Bruno's avatar Bruno

Merge pull request #246 from steeeve/fix-missing-arg-for-root-directory

Stops theme breaking in root directory
parents 1068df1b 9feaaa8c
...@@ -10,11 +10,17 @@ set __toaster_color_lilac AE81FF ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment