Checking whether or not the path has already been exported
This commit is contained in:
parent
b3099d7f7c
commit
ad78c2a78f
2 changed files with 5 additions and 3 deletions
2
.bashrc
2
.bashrc
|
@ -28,7 +28,7 @@ fi
|
||||||
|
|
||||||
# Custom bin directory
|
# Custom bin directory
|
||||||
if [ -d "$HOME/bin" ]; then
|
if [ -d "$HOME/bin" ]; then
|
||||||
export PATH="$PATH:$HOME/bin"
|
[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$PATH:$HOME/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
|
|
6
.zshrc
6
.zshrc
|
@ -5,7 +5,7 @@ export CLICOLOR=1
|
||||||
export EDITOR='emacs'
|
export EDITOR='emacs'
|
||||||
export PAGER='less'
|
export PAGER='less'
|
||||||
export USER_NICKNAME="Rodolphe Breard"
|
export USER_NICKNAME="Rodolphe Breard"
|
||||||
export PATH="$PATH:$HOME/bin"
|
[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$PATH:$HOME/bin"
|
||||||
|
|
||||||
|
|
||||||
setopt nobeep appendhistory histignoredups histignorespace autocd extendedglob nomatch notify correct_all
|
setopt nobeep appendhistory histignoredups histignorespace autocd extendedglob nomatch notify correct_all
|
||||||
|
@ -47,7 +47,9 @@ fi
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
# rbenv
|
# rbenv
|
||||||
hash rbenv 2>/dev/null && eval "$(rbenv init -)"
|
if [[ ! ":$PATH:" == *":$HOME/.rbenv/shims:"* ]]; then
|
||||||
|
hash rbenv 2>/dev/null && eval "$(rbenv init -)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
if [ "$(uname -s | tr '[:upper:]' '[:lower:]')" = 'linux' ]; then
|
if [ "$(uname -s | tr '[:upper:]' '[:lower:]')" = 'linux' ]; then
|
||||||
|
|
Loading…
Reference in a new issue