diff options
author | Justine Smithies <justine@smithies.me.uk> | 2025-08-02 16:28:35 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2025-08-02 16:28:35 +0100 |
commit | c257c004237ee1e69182e59508486d55ea5a15fb (patch) | |
tree | ace9244dff84c43f90159eaac241a5d89688afa1 /.kshrc | |
parent | 8727051c811e4347de03cbeeb02f8116cb4d2af3 (diff) |
Uncomment paging=never in bat and added the man function for colored man pages in .kshrc
Diffstat (limited to '.kshrc')
-rw-r--r-- | .kshrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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\] $ " |