oh-my-fish/functions/Theme.fish

12 lines
301 B
Fish
Raw Normal View History

2015-05-26 21:28:06 +08:00
function Theme --argument-names name
2015-05-26 21:48:21 +08:00
set -g fish_theme $name
2015-05-26 21:28:06 +08:00
if [ -e $fish_path/themes/$name -o -e $fish_custom/themes/$name ]
import themes/$name
else
set_color red
2015-05-31 19:31:55 +08:00
echo "Theme '$name' is not installed. Run 'omf install' to download and install it."
2015-05-26 21:28:06 +08:00
set_color normal
end
end