1
0
Fork 0

zsh: switch from fun to MANPAGER

This commit is contained in:
Vladimír Dudr 2024-10-08 09:21:01 +02:00
parent 6d77f83bf5
commit 810386d7c7
2 changed files with 11 additions and 12 deletions

View file

@ -4,13 +4,12 @@ export CARGO_HOME=${XDG_CACHE_HOME:-$HOME/.cache}/cargo
export GHCUP_USE_XDG_DIRS=1
export STACK_ROOT=${XDG_DATA_HOME:-$HOME/.local/share}/stack
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
export KREW_NO_UPGRADE_CHECK=1
export KREW_ROOT=${XDG_DATA_HOME:-$HOME/.local/share/krew}
export PATH=${KREW_ROOT:-$HOME/.krew}/bin:~/bin:~/.local/bin:$GOPATH/bin:~/.nix-profile/bin:$PATH
export EDITOR=nvim
export MANPAGER="nvim +Man!"
export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock

View file

@ -26,16 +26,16 @@ pocompile() {
msgfmt -o "${app_po%po}mo" "$app_po"
}
man() {
if [[ "$1" = -k ]] || [[ "$1" = '---' ]] ; then
command man "$@"
elif [[ -n "$1" ]]; then
vim man://$1
else
echo 'What manual page do you want?'
return 1
fi
}
# man() {
# if [[ "$1" = -k ]] || [[ "$1" = '---' ]] ; then
# command man "$@"
# elif [[ -n "$1" ]]; then
# vim man://$1
# else
# echo 'What manual page do you want?'
# return 1
# fi
# }
inplace() {
local file=$1