AutoYADM commit: 2025-05-21 03:18:27
This commit is contained in:
parent
7c524d8e20
commit
2f7643d380
3 changed files with 15 additions and 9 deletions
|
@ -25,12 +25,15 @@ function man --wraps man --description 'Format and display manual pages'
|
|||
else
|
||||
set fish_data_dir $__fish_datadir
|
||||
end
|
||||
set -l kakcmd 'set buffer filetype man; set buffer readonly true'
|
||||
set -l kakargs 'set buffer filetype man; set buffer readonly true; execute-keys %sh{ }'
|
||||
set -l mancmd kak -e "man '$argv'"
|
||||
set -l fish_manpath (dirname $fish_data_dir)/fish/man
|
||||
if test -d "$fish_manpath" -a -n "$MANPATH"
|
||||
set MANPATH "$fish_manpath":$MANPATH
|
||||
command man $argv | kak -e "$kakcmd"
|
||||
# command man $argv | kak -e "$kakargs"
|
||||
$mancmd
|
||||
return
|
||||
end
|
||||
command man $argv | kak -e "$kakcmd"
|
||||
# command man $argv | kak -e "$kakargs"
|
||||
$mancmd
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue