From f0e884075c5cca74890df29ca121d1134a9ecca3 Mon Sep 17 00:00:00 2001 From: George Christou Date: Tue, 6 Sep 2016 10:37:52 +0100 Subject: [PATCH] Mute output from `command -v tput` (#3355) The previous change here caused an obviously unwanted path to the `tput` command to be left on the prompt after ^C. --- share/functions/__fish_cancel_commandline.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_cancel_commandline.fish b/share/functions/__fish_cancel_commandline.fish index 3071f0a79..614f2adf4 100644 --- a/share/functions/__fish_cancel_commandline.fish +++ b/share/functions/__fish_cancel_commandline.fish @@ -9,7 +9,7 @@ function __fish_cancel_commandline # # Set reverse fg/bg color mode, output ^C, restore normal mode, clear to EOL (to erase any # autosuggestion). - if command -v tput + if command -v tput >/dev/null echo -ns (tput smso; or tput so) "^C" (tput rmso; or tput se) (tput el; or tput ce) else echo -n "^C"