reducing some "if"

This commit is contained in:
Rodolphe Breard 2015-02-09 22:27:02 +01:00
parent 62890e057d
commit 14c4e3b7ff
2 changed files with 2 additions and 6 deletions

View file

@ -4,6 +4,4 @@
[[ -f ~/.bashrc ]] && . ~/.bashrc
if hash pulseaudio 2>/dev/null; then
pulseaudio --start
fi
hash pulseaudio 2>/dev/null && pulseaudio --start

View file

@ -85,9 +85,7 @@ export EDITOR='emacs'
export PAGER='less'
# rbenv
if hash rbenv 2>/dev/null; then
eval "$(rbenv init -)"
fi
hash rbenv 2>/dev/null && eval "$(rbenv init -)"
# GPG Agent
if [ -f "${HOME}/.gpg-agent-info" ]; then