From 9c0b473ea9ed1d7e25d0779a5509721693bcc05e Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Wed, 8 Jul 2026 07:35:16 +0100 Subject: [PATCH] Fix fish config --- home/fish/config.fish | 8 ++++---- home/fish/interactive.fish | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/home/fish/config.fish b/home/fish/config.fish index 1e2ec7e..640d1bf 100644 --- a/home/fish/config.fish +++ b/home/fish/config.fish @@ -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 diff --git a/home/fish/interactive.fish b/home/fish/interactive.fish index 147237b..4edcb31 100644 --- a/home/fish/interactive.fish +++ b/home/fish/interactive.fish @@ -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