1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

lazygit: fix fish integration

This commit is contained in:
SunOfLife1 2025-11-05 11:17:09 -05:00 committed by Austin Horstman
parent 432bc8a5da
commit d375dfc1ff

View file

@ -103,13 +103,11 @@ in
'';
fishIntegration = ''
function ${cfg.shellWrapperName}
set -x LAZYGIT_NEW_DIR_FILE ${lazygitNewDirFilePath}
command lazygit $argv
if test -f $LAZYGIT_NEW_DIR_FILE
cd (cat $LAZYGIT_NEW_DIR_FILE)
rm -f $LAZYGIT_NEW_DIR_FILE
end
set -x LAZYGIT_NEW_DIR_FILE ${lazygitNewDirFilePath}
command lazygit $argv
if test -f $LAZYGIT_NEW_DIR_FILE
cd (cat $LAZYGIT_NEW_DIR_FILE)
rm -f $LAZYGIT_NEW_DIR_FILE
end
'';