diff options
-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\] $ " |