aboutsummaryrefslogtreecommitdiff
path: root/.kshrc
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-06-09 18:44:54 +0100
committerJustine Smithies <justine@smithies.me.uk>2026-06-09 18:44:54 +0100
commit7518708b6af9feec09f8332cca2c45385a3d1b1c (patch)
tree33a84032851e6085a13e574c236d2607c81eac1c /.kshrc
parentd639206688df6c6b0d7462544263b4f61cb342d1 (diff)
Removed man function from .kshrc that colors man pages using bat and replaced by setting the MANPAGER variable.HEADmaster
Diffstat (limited to '.kshrc')
-rw-r--r--.kshrc7
1 files changed, 2 insertions, 5 deletions
diff --git a/.kshrc b/.kshrc
index d38c506..7c5f31f 100644
--- a/.kshrc
+++ b/.kshrc
@@ -56,14 +56,11 @@ if _exists less; then
export PAGER LESSHISTFILE LESS
fi
-# Colored man pages
-man() {
- sh -c "man '$@' | col -bx | bat -l man"
-}
-
# Set prompt: ``username@hostname directory $ ''
PS1="\[\e[1;32m\]\u@\h \[\e[1;34m\]\w\[\e[0m\] \[\e[1;31m\]\$(__get_current_git_branch_name)\[\e[0m\] $ "
+# Color man pages using bat
+MANPAGER="sh -c 'col -bx | bat -l man -p'"
COLORTERM="truecolor"
EDITOR="vim"
VISUAL="vim"