Skip to content

Commit

Permalink
Fixes #215. Redirect bashrc and bash_profile pipes to /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Mar 16, 2015
1 parent 2f012e2 commit e59d7c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/langs/cli-beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e59d7c3

Please sign in to comment.