aboutsummaryrefslogtreecommitdiff
path: root/.kshrc
diff options
context:
space:
mode:
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\] $ "