Fix fish config

This commit is contained in:
2026-07-08 07:35:16 +01:00
parent 3e30f0b1dc
commit 9c0b473ea9
2 changed files with 8 additions and 4 deletions
+4 -4
View File
@@ -2,11 +2,11 @@ set -gx fish_greeting
function nix
if test "$argv[1]" = "develop"
command nix develop -c fish $argv[2..-1]
nix develop -c fish $argv[2..-1]
else if test "$argv[1]" = "shell"
env IN_NIX_SHELL=shell command nix $argv
env IN_NIX_SHELL=shell nix $argv
else
command nix $argv
nix $argv
end
end
function a
@@ -22,7 +22,7 @@ end
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
end