Set the custom bin path within a dedicated script

The custom bin path was set in multiple places. Each time, the line
was identical and supposed the use of a /bin/sh emulation with a
common extension. To reduce duplicated code and support other
platforms, the custom bin path is now set in a dedicated script that
can be source'd.
This commit is contained in:
Rodolphe Breard 2017-02-12 16:09:16 +01:00
parent e24502769b
commit 01472b6d05
5 changed files with 12 additions and 5 deletions

View file

@ -14,7 +14,9 @@ export PAGER='less'
export USER_NICKNAME="Rodolphe Breard"
export DEBEMAIL="packages+deb@what.tf"
export DEBFULLNAME="$USER_NICKNAME"
[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$HOME/bin:$PATH"
# Path
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
# Colors
[ "$CLICOLOR" -ne 0 ] && hash dircolors 2>/dev/null && eval $(dircolors -b)