From 8888d69a346bb07cc0be53229e7d747a9095d98d Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 14 Jun 2015 21:32:59 +0200 Subject: [PATCH] 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. --- bash_profile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bash_profile b/bash_profile index b8d6305..422bfc2 100644 --- a/bash_profile +++ b/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