diff --git a/modules/fish/default.nix b/modules/fish/default.nix index c380563..6e28fbb 100644 --- a/modules/fish/default.nix +++ b/modules/fish/default.nix @@ -25,7 +25,7 @@ command fzf ''; dev_projects = /* fish */ '' - if test "$hn" == "dnsc-work" + if test "$hn" = "dnsc-work" begin fd . ~/dev/ride/apps/backend/edge-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) - 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" else zellij attach "$session_name" --create @@ -183,7 +183,7 @@ fish_add_path /run/wrappers/bin fish_add_path /run/current-system/sw/bin - if $uname == "Darwin" + if test "$uname" = "Darwin" setup_homebrew end ''; @@ -212,7 +212,7 @@ setup_env setup_path - if test "$hn" == "dnsc-work" + if test "$hn" = "dnsc-work" setup_work end