Skip to content

Commit 7905589

Browse files
committed
less: Use no PAGER for systemctl for proper color escape sequences etc
1 parent c7aa7c4 commit 7905589

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sparse/etc/profile.d/less-custom-setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ if [[ $- = *i* && -x `command -v less` ]]; then
1010

1111
# stop using 'more' :)
1212
export PAGER=less
13+
14+
# fixup 'systemctl' command colors & output formatting
15+
alias systemctl="PAGER= systemctl"
1316
fi

0 commit comments

Comments
 (0)