mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-01 19:58:23 -05:00
shell: set MANPATH in man() function instead
This commit is contained in:
parent
6049d8aaea
commit
5c69c10d97
@ -365,7 +365,6 @@ fi
|
||||
|
||||
# PATH
|
||||
export PATH=$HOME/.local/bin:$HOME/.local/bin/fzf:$NODENV_ROOT/bin:$PYENV_ROOT/bin:$POETRY_HOME/bin:$CARGO_HOME/bin:$GOPATH/bin:$NPM_CONFIG_PREFIX/bin:$PATH
|
||||
export MANPATH=$HOME/.local/share/man:$MANPATH
|
||||
|
||||
# _________________
|
||||
# ___ |__ /__(_)_____ ________
|
||||
@ -416,6 +415,7 @@ alias ....='cd ../../..'
|
||||
|
||||
# colorize man pages
|
||||
man() {
|
||||
MANPATH=$HOME/.local/share/man:$MANPATH \
|
||||
LESS_TERMCAP_mb=$'\e[01;31m' \
|
||||
LESS_TERMCAP_md=$'\e[01;36m' \
|
||||
LESS_TERMCAP_me=$'\e[0m' \
|
||||
|
@ -5,6 +5,7 @@
|
||||
# /_/ |_/_/ /_/ \__,_/ /____/
|
||||
#
|
||||
# remap
|
||||
abbr x extract
|
||||
abbr p pulsemixer
|
||||
alias startx='startx $HOME/.config/X11/xinitrc'
|
||||
alias fehwpp="feh --no-fehbg --bg-fill --randomize ~/Pictures/Wallpapers/*"
|
||||
|
@ -382,4 +382,3 @@ end
|
||||
|
||||
# PATH
|
||||
set -gx fish_user_paths $HOME/.local/bin $HOME/.local/bin/fzf $NODENV_ROOT/bin $PYENV_ROOT/bin $POETRY_HOME/bin $CARGO_HOME/bin $GOPATH/bin $NPM_CONFIG_PREFIX/bin
|
||||
set -gx MANPATH $HOME/.local/share/man:$MANPATH
|
||||
|
@ -1,4 +1,10 @@
|
||||
function man -d "man with colors"
|
||||
if test -d $HOME/.local/share/man
|
||||
set -x MANPATH "$HOME/.local/share/man:$__fish_data_dir/man:$MANPATH"
|
||||
else
|
||||
set -x MANPATH "$__fish_data_dir/man:$MANPATH"
|
||||
end
|
||||
|
||||
set -x LESS_TERMCAP_mb (printf "\e[01;31m") # begin blink
|
||||
set -x LESS_TERMCAP_md (printf "\e[01;36m") # begin bold
|
||||
set -x LESS_TERMCAP_me (printf "\e[0m") # reset bold/blink
|
||||
|
@ -403,5 +403,3 @@ fi
|
||||
typeset -U PATH path
|
||||
path=("$HOME/.local/bin" "$HOME/.local/bin/fzf" "$NODENV_ROOT/bin" "$PYENV_ROOT/bin" "$POETRY_HOME/bin" "$CARGO_HOME/bin" "$GOPATH/bin" "$NPM_CONFIG_PREFIX/bin" "$path[@]")
|
||||
export PATH
|
||||
|
||||
export MANPATH="$HOME/.local/share/man:$MANPATH"
|
||||
|
@ -41,6 +41,7 @@ alias ....='cd ../../..'
|
||||
|
||||
# colorize man pages
|
||||
man() {
|
||||
MANPATH=$HOME/.local/share/man:$MANPATH \
|
||||
LESS_TERMCAP_mb=$'\e[01;31m' \
|
||||
LESS_TERMCAP_md=$'\e[01;36m' \
|
||||
LESS_TERMCAP_me=$'\e[0m' \
|
||||
|
Loading…
Reference in New Issue
Block a user