summaryrefslogtreecommitdiff
path: root/main.fish
diff options
context:
space:
mode:
Diffstat (limited to 'main.fish')
-rwxr-xr-xmain.fish5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.fish b/main.fish
index 382d2ea..81543b1 100755
--- a/main.fish
+++ b/main.fish
@@ -33,7 +33,10 @@ end
if test "$argv[1]" = scheme
set -l valid_schemes dynamic mocha macchiato frappe latte
- contains "$argv[2]" $valid_schemes && echo -n $argv[2] > $CACHE/scheme/current.txt || error "Invalid scheme: $argv[2]"
+ if contains "$argv[2]" $valid_schemes
+ echo -n $argv[2] > $CACHE/scheme/current.txt || error "Invalid scheme: $argv[2]"
+ test -f $CONFIG/gtk/update-scheme.fish && $CONFIG/gtk/update-scheme.fish
+ end
exit
end