mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-11 19:40:00 -05:00
shell: fix run
This commit is contained in:
@@ -12,7 +12,7 @@ update-repo scripts $dist
|
|||||||
|
|
||||||
# Install to path
|
# Install to path
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
ln -s $dist/main.fish ~/.local/bin/caelestia
|
ln -sf $dist/main.fish ~/.local/bin/caelestia
|
||||||
|
|
||||||
# Install completions
|
# Install completions
|
||||||
mkdir -p $CONFIG/fish/completions
|
mkdir -p $CONFIG/fish/completions
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ set -l src (dirname (realpath (status filename)))
|
|||||||
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 -l shell_dir $CAELESTIA_SHELL_DIR || set -l shell_dir $CONFIG/shell
|
$C_DATA/shell/run.fish
|
||||||
$shell_dir/run.fish
|
|
||||||
else
|
else
|
||||||
if contains -- 'caelestia' (astal -l)
|
if contains -- 'caelestia' (astal -l)
|
||||||
log "Sent command '$argv[2..]' to shell"
|
log "Sent command '$argv[2..]' to shell"
|
||||||
|
|||||||
Reference in New Issue
Block a user