Skip to content

Commit

Permalink
Add support for fish shell (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria authored Jun 17, 2024
1 parent b03fea6 commit b0b0e07
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@

programs.bash.initExtra = hook;
programs.zsh.initExtra = hook;
programs.fish.functions.h = {
body = ''
set _h_dir $(${h}/bin/h --resolve $(path resolve ${config.programs.h.codeRoot}) $argv)
set _h_ret $status
if test "$_h_dir" != "$PWD"
cd "$_h_dir"
end
return $_h_ret
'';
wraps = "h";
};
};
};
};
Expand Down

0 comments on commit b0b0e07

Please sign in to comment.