aboutsummaryrefslogtreecommitdiff
path: root/.kshrc
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2025-08-02 16:28:35 +0100
committerJustine Smithies <justine@smithies.me.uk>2025-08-02 16:28:35 +0100
commitc257c004237ee1e69182e59508486d55ea5a15fb (patch)
treeace9244dff84c43f90159eaac241a5d89688afa1 /.kshrc
parent8727051c811e4347de03cbeeb02f8116cb4d2af3 (diff)
Uncomment paging=never in bat and added the man function for colored man pages in .kshrc
Diffstat (limited to '.kshrc')
-rw-r--r--.kshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/.kshrc b/.kshrc
index 5fade12..47fc7a6 100644
--- a/.kshrc
+++ b/.kshrc
@@ -39,6 +39,11 @@ __get_current_git_branch_name() {
echo -en " $branch_name"
}
+# 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\] $ "