diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-04 23:47:47 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-05 11:41:56 +1100 |
| commit | 1360356f8a41103f5782d126c3e4d9c9e585f762 (patch) | |
| tree | 0d9ef89d7ac7bd7aa574f4ef3d57a7326c4125a9 /scheme | |
| parent | install: fix firefox install (diff) | |
| download | caelestia-cli-1360356f8a41103f5782d126c3e4d9c9e585f762.tar.gz caelestia-cli-1360356f8a41103f5782d126c3e4d9c9e585f762.tar.bz2 caelestia-cli-1360356f8a41103f5782d126c3e4d9c9e585f762.zip | |
scheme: random scheme when no args
Diffstat (limited to 'scheme')
| -rwxr-xr-x | scheme/main.fish | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scheme/main.fish b/scheme/main.fish index 06c4c14..26063d7 100755 --- a/scheme/main.fish +++ b/scheme/main.fish @@ -7,6 +7,8 @@ set -l src (dirname (status filename))/.. set -l valid_schemes (path change-extension '' $src/data/schemes/* | sed 's!.*/!!') set -l light_schemes latte +test -z "$argv" && set -l argv[1] (random choice $valid_schemes) + if contains -- "$argv[1]" $valid_schemes mkdir -p $C_STATE/scheme |