Fix fish config
This commit is contained in:
@@ -2,11 +2,11 @@ set -gx fish_greeting
|
|||||||
|
|
||||||
function nix
|
function nix
|
||||||
if test "$argv[1]" = "develop"
|
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"
|
else if test "$argv[1]" = "shell"
|
||||||
env IN_NIX_SHELL=shell command nix $argv
|
env IN_NIX_SHELL=shell nix $argv
|
||||||
else
|
else
|
||||||
command nix $argv
|
nix $argv
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function a
|
function a
|
||||||
@@ -22,7 +22,7 @@ end
|
|||||||
function y
|
function y
|
||||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||||
yazi $argv --cwd-file="$tmp"
|
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"
|
builtin cd -- "$cwd"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ if test "$KITTY_STR" = "1"
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function postexec_test --on-event fish_postexec
|
||||||
|
echo
|
||||||
|
end
|
||||||
|
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
set -l last_status $status
|
set -l last_status $status
|
||||||
set -l markers
|
set -l markers
|
||||||
|
|||||||
Reference in New Issue
Block a user