Add function in fish to quickly make a nix .envrc
This commit is contained in:
parent
04aeac8397
commit
5450f73b5a
1 changed files with 4 additions and 0 deletions
4
fish.nix
4
fish.nix
|
|
@ -79,6 +79,10 @@
|
||||||
echo -n -s (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
echo -n -s (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) \
|
||||||
(set_color -i yellow) $direnv_status $normal " "$prompt_status " "$suffix " "
|
(set_color -i yellow) $direnv_status $normal " "$prompt_status " "$suffix " "
|
||||||
'';
|
'';
|
||||||
|
# run $argv when a file tracked by git is updated.
|
||||||
|
gitentr.body = ''
|
||||||
|
${pkgs.git}/bin/git ls-tree -r HEAD --name-only | ${pkgs.entr}/bin/entr $argv
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue