powerline-go: add fish integration
This commit is contained in:
parent
7f976da068
commit
ab6517d34a
3 changed files with 51 additions and 0 deletions
|
|
@ -140,5 +140,14 @@ in {
|
|||
install_powerline_precmd
|
||||
fi
|
||||
'';
|
||||
|
||||
# https://github.com/justjanne/powerline-go#fish
|
||||
programs.fish.promptInit =
|
||||
mkIf (cfg.enable && config.programs.fish.enable) ''
|
||||
function fish_prompt
|
||||
eval ${pkgs.powerline-go}/bin/powerline-go -error $status -jobs (count (jobs -p)) ${commandLineArguments}
|
||||
${cfg.extraUpdatePS1}
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue