1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-09 12:06:04 +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,14 +103,12 @@ in
''; '';
fishIntegration = '' fishIntegration = ''
function ${cfg.shellWrapperName}
set -x LAZYGIT_NEW_DIR_FILE ${lazygitNewDirFilePath} set -x LAZYGIT_NEW_DIR_FILE ${lazygitNewDirFilePath}
command lazygit $argv command lazygit $argv
if test -f $LAZYGIT_NEW_DIR_FILE if test -f $LAZYGIT_NEW_DIR_FILE
cd (cat $LAZYGIT_NEW_DIR_FILE) cd (cat $LAZYGIT_NEW_DIR_FILE)
rm -f $LAZYGIT_NEW_DIR_FILE rm -f $LAZYGIT_NEW_DIR_FILE
end end
end
''; '';
nushellIntegration = '' nushellIntegration = ''