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 | |
parent | 8727051c811e4347de03cbeeb02f8116cb4d2af3 (diff) |
Uncomment paging=never in bat and added the man function for colored man pages in .kshrc
-rwxr-xr-x | .config/bat/config | 2 | ||||
-rw-r--r-- | .kshrc | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.config/bat/config b/.config/bat/config index bc2ec99..ef4ec0c 100755 --- a/.config/bat/config +++ b/.config/bat/config @@ -12,7 +12,7 @@ #--italic-text=always # Uncomment the following line to disable automatic paging: ---paging=never +# --paging=never # Uncomment the following line if you are using less version >= 551 and want to # enable mouse scrolling support in `bat` when running inside tmux. This might @@ -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\] $ " |