diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 14:25:41 +1100 |
| commit | 669eaa61cbead28957c0b541212e05a8ca8c7a7f (patch) | |
| tree | 064b476d7757cd8abb19faddff67defba0c538bf /main.fish | |
| parent | readme: update help message (diff) | |
| download | caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.gz caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.tar.bz2 caelestia-cli-669eaa61cbead28957c0b541212e05a8ca8c7a7f.zip | |
install: better install + use data and state
Don't complete remove repos, use git pull instead
Use XDG_DATA_HOME and XDG_STATE_HOME
Diffstat (limited to 'main.fish')
| -rwxr-xr-x | main.fish | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -34,9 +34,9 @@ end if test "$argv[1]" = scheme set -l valid_schemes (path change-extension '' $src/data/schemes/* | sed 's!.*/!!') if contains -- "$argv[2]" $valid_schemes - mkdir -p $CACHE/scheme - cp $src/data/schemes/$argv[2].txt $CACHE/scheme/current.txt - echo -n $argv[2] > $CACHE/scheme/current-name.txt + mkdir -p $C_STATE/scheme + cp $src/data/schemes/$argv[2].txt $C_STATE/scheme/current.txt + echo -n $argv[2] > $C_STATE/scheme/current-name.txt else error "Invalid scheme: $argv[2]" end |