mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 19:03:58 +08:00
Merge pull request #246 from steeeve/fix-missing-arg-for-root-directory
Stops theme breaking in root directory
This commit is contained in:
commit
dbecd88f13
|
@ -10,11 +10,17 @@ set __toaster_color_lilac AE81FF
|
|||
|
||||
function __toaster_color_echo
|
||||
set_color $argv[1]
|
||||
echo -n $argv[2]
|
||||
if test (count $argv) -eq 2
|
||||
echo -n $argv[2]
|
||||
end
|
||||
end
|
||||
|
||||
function __toaster_current_folder
|
||||
echo -n $PWD | grep -o -E '[^\/]+$'
|
||||
if test $PWD = '/'
|
||||
echo -n '/'
|
||||
else
|
||||
echo -n $PWD | grep -o -E '[^\/]+$'
|
||||
end
|
||||
end
|
||||
|
||||
function __toaster_git_status_codes
|
||||
|
|
Loading…
Reference in New Issue
Block a user