forked from Shinonome/caelestia-cli
use xdg config home
This commit is contained in:
@@ -7,7 +7,7 @@ cd (dirname (realpath (status filename))) || exit
|
|||||||
if test "$argv[1]" = shell
|
if test "$argv[1]" = shell
|
||||||
# Start shell if no args
|
# Start shell if no args
|
||||||
if test -z "$argv[2..]"
|
if test -z "$argv[2..]"
|
||||||
set -q CAELESTIA_SHELL_DIR && set shell_dir $CAELESTIA_SHELL_DIR || set shell_dir ~/.config/caelestia/shell
|
set -q CAELESTIA_SHELL_DIR && set shell_dir $CAELESTIA_SHELL_DIR || set shell_dir $CONFIG/shell
|
||||||
$shell_dir/run.fish
|
$shell_dir/run.fish
|
||||||
else
|
else
|
||||||
if contains 'caelestia' (astal -l)
|
if contains 'caelestia' (astal -l)
|
||||||
|
|||||||
@@ -18,4 +18,5 @@ function error -a text
|
|||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set -q XDG_CONFIG_HOME && set CONFIG $XDG_CONFIG_HOME/caelestia || set CONFIG $HOME/.config/caelestia
|
||||||
set -q XDG_CACHE_HOME && set CACHE $XDG_CACHE_HOME/caelestia || set CACHE $HOME/.cache/caelestia
|
set -q XDG_CACHE_HOME && set CACHE $XDG_CACHE_HOME/caelestia || set CACHE $HOME/.cache/caelestia
|
||||||
|
|||||||
Reference in New Issue
Block a user