From 538e6e5cf1174c7348c7fdeea78908acd57f9b3d Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 1 Apr 2021 19:11:02 -0400 Subject: [PATCH] do not run powerline on tty --- modules/cli.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cli.nix b/modules/cli.nix index 94b1126..829094f 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -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" ''; }