do not run powerline on tty

This commit is contained in:
Sean Buckley 2021-04-01 19:11:02 -04:00
parent 4532b95ecc
commit 538e6e5cf1

View file

@ -93,6 +93,6 @@ in
function _update_ps1() {
PS1="\n$(${pkgs.powerline-go}/bin/powerline-go ${lib.concatStringsSep " " powerlineOpts})$ "
}
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
[ "$TERM" = "linux" ] || PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
'';
}