From e59d7c33a6458418915a2a4d0deef38d5ed78c83 Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Mon, 16 Mar 2015 02:19:05 -0300 Subject: [PATCH] Fixes #215. Redirect bashrc and bash_profile pipes to /dev/null --- lib/langs/cli-beautify.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/langs/cli-beautify.coffee b/lib/langs/cli-beautify.coffee index 1ba05de..3cefb2d 100644 --- a/lib/langs/cli-beautify.coffee +++ b/lib/langs/cli-beautify.coffee @@ -46,8 +46,8 @@ module.exports = (getCmd, isStdout) -> # This should normalize the $PATH # by calling the external files that would usually # change the $PATH variable on user login. - $path = "[ -f ~/.bash_profile ] && source ~/.bash_profile;" - $path += "[ -f ~/.bashrc ] && source ~/.bashrc;" + $path = "[ -f ~/.bash_profile ] && source ~/.bash_profile > /dev/null 2>&1;" + $path += "[ -f ~/.bashrc ] && source ~/.bashrc > /dev/null 2>&1;" # See http://stackoverflow.com/a/638980/2578205 # for checking if file exists in Bash