shell: fix run

This commit is contained in:
2 * r + 2 * t
2025-02-22 15:41:01 +11:00
parent 628fc1a931
commit 111078398e
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ update-repo scripts $dist
# Install to path
mkdir -p ~/.local/bin
ln -s $dist/main.fish ~/.local/bin/caelestia
ln -sf $dist/main.fish ~/.local/bin/caelestia
# Install completions
mkdir -p $CONFIG/fish/completions
+1 -2
View File
@@ -7,8 +7,7 @@ set -l src (dirname (realpath (status filename)))
if test "$argv[1]" = shell
# Start shell if no args
if test -z "$argv[2..]"
set -q CAELESTIA_SHELL_DIR && set -l shell_dir $CAELESTIA_SHELL_DIR || set -l shell_dir $CONFIG/shell
$shell_dir/run.fish
$C_DATA/shell/run.fish
else
if contains -- 'caelestia' (astal -l)
log "Sent command '$argv[2..]' to shell"