fixes more things in fish config

This commit is contained in:
Dennis Schoepf 2025-12-06 17:39:00 +01:00
parent 8252ee918b
commit 602685e775

View file

@ -25,7 +25,7 @@
command fzf command fzf
''; '';
dev_projects = /* fish */ '' dev_projects = /* fish */ ''
if test "$hn" == "dnsc-work" if test "$hn" = "dnsc-work"
begin begin
fd . ~/dev/ride/apps/backend/edge-services -t d -d 1; fd . ~/dev/ride/apps/backend/edge-services -t d -d 1;
fd . ~/dev/ride/apps/backend/backend-services -t d -d 1; fd . ~/dev/ride/apps/backend/backend-services -t d -d 1;
@ -74,7 +74,7 @@
set -l session_name (basename $selected) set -l session_name (basename $selected)
if "$ZELLIJ" == 0 if test $ZELLIJ -eq 0
zellij pipe --plugin file:${pkgs.zellij-switch}/bin/zellij-switch.wasm -- "--session $session_name --cwd $selected --layout default" zellij pipe --plugin file:${pkgs.zellij-switch}/bin/zellij-switch.wasm -- "--session $session_name --cwd $selected --layout default"
else else
zellij attach "$session_name" --create zellij attach "$session_name" --create
@ -183,7 +183,7 @@
fish_add_path /run/wrappers/bin fish_add_path /run/wrappers/bin
fish_add_path /run/current-system/sw/bin fish_add_path /run/current-system/sw/bin
if $uname == "Darwin" if test "$uname" = "Darwin"
setup_homebrew setup_homebrew
end end
''; '';
@ -212,7 +212,7 @@
setup_env setup_env
setup_path setup_path
if test "$hn" == "dnsc-work" if test "$hn" = "dnsc-work"
setup_work setup_work
end end