diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-26 22:49:34 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-26 22:49:34 +1100 |
| commit | b3a42bcb9710f17bef1f4652d089add194f2e8fd (patch) | |
| tree | ec8c7480fd495a09e7ef9d64fd79f4e6f13548fd /main.fish | |
| parent | add readme and install script (diff) | |
| download | caelestia-cli-b3a42bcb9710f17bef1f4652d089add194f2e8fd.tar.gz caelestia-cli-b3a42bcb9710f17bef1f4652d089add194f2e8fd.tar.bz2 caelestia-cli-b3a42bcb9710f17bef1f4652d089add194f2e8fd.zip | |
don't cd
Changing the working directory breaks realpath for the wallpaper when you dont provide the full path
Diffstat (limited to 'main.fish')
| -rwxr-xr-x | main.fish | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,8 +1,8 @@ #!/bin/fish -cd (dirname (realpath (status filename))) || exit +set -l src (dirname (realpath (status filename))) -. ./util.fish +. $src/util.fish if test "$argv[1]" = shell # Start shell if no args @@ -22,12 +22,12 @@ end if test "$argv[1]" = toggle set -l valid_toggles communication music sysmon specialws - contains "$argv[2]" $valid_toggles && ./toggles/$argv[2].fish || error "Invalid toggle: $argv[2]" + contains "$argv[2]" $valid_toggles && $src/toggles/$argv[2].fish || error "Invalid toggle: $argv[2]" exit end if test "$argv[1]" = workspace-action - ./workspace-action.sh $argv[2..] + $src/workspace-action.sh $argv[2..] exit end @@ -43,7 +43,7 @@ end set valid_subcommands screenshot record clipboard clipboard-delete emoji-picker wallpaper pip if contains "$argv[1]" $valid_subcommands - ./$argv[1].fish $argv[2..] + $src/$argv[1].fish $argv[2..] exit end |