From 14c4e3b7ff8151725d405d6a2cd8cb0425b8bd91 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 9 Feb 2015 22:27:02 +0100 Subject: [PATCH] reducing some "if" --- .bash_profile | 4 +--- .bashrc | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.bash_profile b/.bash_profile index f21fbdf..277a52f 100644 --- a/.bash_profile +++ b/.bash_profile @@ -4,6 +4,4 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc -if hash pulseaudio 2>/dev/null; then - pulseaudio --start -fi +hash pulseaudio 2>/dev/null && pulseaudio --start diff --git a/.bashrc b/.bashrc index e42f286..c02c7c4 100644 --- a/.bashrc +++ b/.bashrc @@ -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