mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
shell: set MANPATH in man() function instead
This commit is contained in:
parent
9164d14ff1
commit
4c996a6311
@ -365,7 +365,6 @@ fi
|
|||||||
|
|
||||||
# PATH
|
# 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 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
|
# colorize man pages
|
||||||
man() {
|
man() {
|
||||||
|
MANPATH=$HOME/.local/share/man:$MANPATH \
|
||||||
LESS_TERMCAP_mb=$'\e[01;31m' \
|
LESS_TERMCAP_mb=$'\e[01;31m' \
|
||||||
LESS_TERMCAP_md=$'\e[01;36m' \
|
LESS_TERMCAP_md=$'\e[01;36m' \
|
||||||
LESS_TERMCAP_me=$'\e[0m' \
|
LESS_TERMCAP_me=$'\e[0m' \
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
# /_/ |_/_/ /_/ \__,_/ /____/
|
# /_/ |_/_/ /_/ \__,_/ /____/
|
||||||
#
|
#
|
||||||
# remap
|
# remap
|
||||||
|
abbr x extract
|
||||||
abbr p pulsemixer
|
abbr p pulsemixer
|
||||||
alias startx='startx $HOME/.config/X11/xinitrc'
|
alias startx='startx $HOME/.config/X11/xinitrc'
|
||||||
alias fehwpp="feh --no-fehbg --bg-fill --randomize ~/Pictures/Wallpapers/*"
|
alias fehwpp="feh --no-fehbg --bg-fill --randomize ~/Pictures/Wallpapers/*"
|
||||||
|
@ -382,4 +382,3 @@ end
|
|||||||
|
|
||||||
# PATH
|
# 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 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"
|
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_mb (printf "\e[01;31m") # begin blink
|
||||||
set -x LESS_TERMCAP_md (printf "\e[01;36m") # begin bold
|
set -x LESS_TERMCAP_md (printf "\e[01;36m") # begin bold
|
||||||
set -x LESS_TERMCAP_me (printf "\e[0m") # reset bold/blink
|
set -x LESS_TERMCAP_me (printf "\e[0m") # reset bold/blink
|
||||||
|
@ -403,5 +403,3 @@ fi
|
|||||||
typeset -U PATH path
|
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[@]")
|
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 PATH
|
||||||
|
|
||||||
export MANPATH="$HOME/.local/share/man:$MANPATH"
|
|
||||||
|
@ -41,6 +41,7 @@ alias ....='cd ../../..'
|
|||||||
|
|
||||||
# colorize man pages
|
# colorize man pages
|
||||||
man() {
|
man() {
|
||||||
|
MANPATH=$HOME/.local/share/man:$MANPATH \
|
||||||
LESS_TERMCAP_mb=$'\e[01;31m' \
|
LESS_TERMCAP_mb=$'\e[01;31m' \
|
||||||
LESS_TERMCAP_md=$'\e[01;36m' \
|
LESS_TERMCAP_md=$'\e[01;36m' \
|
||||||
LESS_TERMCAP_me=$'\e[0m' \
|
LESS_TERMCAP_me=$'\e[0m' \
|
||||||
|
Loading…
Reference in New Issue
Block a user