oh-my-fish/functions/Theme.fish

12 lines
302 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
echo "Theme '$name' is not installed. Run 'fish install' to download and install it."
set_color normal
end
end