]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Bash completion: no more ANSI colorcode in pathnames
authorExcited-bore <31372378+excited-bore@users.noreply.github.com>
Mon, 2 Dec 2024 13:38:40 +0000 (14:38 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 2 Dec 2024 16:56:12 +0000 (16:56 +0000)
Bash completion: no more ANSI colorcode in pathnames

shell-completion/bash/systemctl.in

index f4576c4355b7c4138e872dc7df1d8e4b2e411a45..f2219f23ea444c3d6450ab215a55b7baa1105a6b 100644 (file)
@@ -9,7 +9,7 @@
 
 __systemctl() {
     local mode=$1; shift 1
-    systemctl $mode --full --legend=no --no-pager --plain "$@" 2>/dev/null
+    SYSTEMD_COLORS=0 systemctl $mode --full --legend=no --no-pager --plain "$@" 2>/dev/null
 }
 
 __systemd_properties() {