mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-17 13:23:08 +10:00
Changed MANPAGER to less
This commit is contained in:
5
.bashrc
5
.bashrc
@@ -17,7 +17,7 @@ export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mod
|
||||
### Uncomment only one of these!
|
||||
|
||||
### "bat" as manpager
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
# export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
### "vim" as manpager
|
||||
# export MANPAGER='/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
|
||||
@@ -25,6 +25,9 @@ export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
### "nvim" as manpager
|
||||
# export MANPAGER="nvim -c 'set ft=man' -"
|
||||
|
||||
### "less" as manpager
|
||||
export MANPAGER="less"
|
||||
|
||||
### SET VI MODE ###
|
||||
# Comment this line out to enable default emacs-like bindings
|
||||
set -o vi
|
||||
|
||||
@@ -22,7 +22,7 @@ set VISUAL "emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mod
|
||||
### Uncomment only one of these!
|
||||
|
||||
### "bat" as manpager
|
||||
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||
# set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
### "vim" as manpager
|
||||
# set -x MANPAGER '/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
|
||||
@@ -30,6 +30,9 @@ set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||
### "nvim" as manpager
|
||||
# set -x MANPAGER "nvim -c 'set ft=man' -"
|
||||
|
||||
### "less" as manpager
|
||||
set -x MANPAGER "less"
|
||||
|
||||
### SET EITHER DEFAULT EMACS MODE OR VI MODE ###
|
||||
function fish_user_key_bindings
|
||||
# fish_default_key_bindings
|
||||
|
||||
5
.zshrc
5
.zshrc
@@ -15,7 +15,7 @@ export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mod
|
||||
### Uncomment only one of these!
|
||||
|
||||
### "bat" as manpager
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
# export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
### "vim" as manpager
|
||||
# export MANPAGER='/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
|
||||
@@ -23,6 +23,9 @@ export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
### "nvim" as manpager
|
||||
# export MANPAGER="nvim -c 'set ft=man' -"
|
||||
|
||||
### "less" as manpager
|
||||
export MANPAGER="less"
|
||||
|
||||
### SET VI MODE ###
|
||||
# Comment this line out to enable default emacs-like bindings
|
||||
bindkey -v
|
||||
|
||||
Reference in New Issue
Block a user