Local man pages have precedence in MANPATH
The local man pages intalled in /usr/local/share/man should be checked before the system's man pages for matches, since the tools installed in /usr/local/bin have precedence over the ones at /bin and /usr/bin. Change bash history management to ignore consecutive duplicates and commands starting with a whitespace.
This commit is contained in:
parent
135986389d
commit
8888d69a34
1 changed files with 11 additions and 5 deletions
16
bash_profile
16
bash_profile
|
@ -15,18 +15,24 @@ export PLATFORM=$(get_platform)
|
|||
export EDITOR="vim"
|
||||
export HISTSIZE="65536"
|
||||
export HISTFILESIZE="$HISTSIZE"
|
||||
export HISTCONTROL=ignoredups:ignorespace
|
||||
export LANG="en_US.UTF-8"
|
||||
export LANGUAGE="en_US"
|
||||
export LC_CTYPE="en_US.UTF-8"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
[ -z "$BACKGROUND" ] && export BACKGROUND="dark"
|
||||
|
||||
gnubin=/usr/local/opt/coreutils/libexec/gnubin
|
||||
[ -d "$gnubin" ] && PATH="$gnubin:$PATH"
|
||||
[ -d "$HOME/.dotfiles/bin" ] && PATH="$HOME/.dotfiles/bin:$PATH"
|
||||
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
|
||||
export PATH
|
||||
|
||||
localman=/usr/local/share/man
|
||||
gnuman=/usr/local/opt/coreutils/libexec/gnuman
|
||||
[ -d "$gnubin" ] && export PATH="$gnubin:$PATH"
|
||||
[ -d "$gnuman" ] && export MANPATH="$gnuman:$MANPATH"
|
||||
[ -d "$HOME/.dotfiles/bin" ] && export PATH="$HOME/.dotfiles/bin:$PATH"
|
||||
[ -d "$HOME/bin" ] && export PATH="$HOME/bin:$PATH"
|
||||
[ -z "$BACKGROUND" ] && export BACKGROUND="dark"
|
||||
[ -d "$localman" ] && MANPATH="$localman:$MANPATH"
|
||||
[ -d "$gnuman" ] && MANPATH="$gnuman:$MANPATH"
|
||||
export MANPATH
|
||||
|
||||
#
|
||||
# Aliases
|
||||
|
|
Loading…
Add table
Reference in a new issue