Fix fish config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -5,6 +5,10 @@ if test "$KITTY_STR" = "1"
|
||||
end
|
||||
end
|
||||
|
||||
function postexec_test --on-event fish_postexec
|
||||
echo
|
||||
end
|
||||
|
||||
function fish_prompt
|
||||
set -l last_status $status
|
||||
set -l markers
|
||||
|
||||
Reference in New Issue
Block a user