Skip to content

Instantly share code, notes, and snippets.

@tvraman
Created August 23, 2014 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvraman/0e121738f7917a22e458 to your computer and use it in GitHub Desktop.
Save tvraman/0e121738f7917a22e458 to your computer and use it in GitHub Desktop.
Advice shell-command and friends to use /bin/bash
(loop
for f in
'(shell-command shell-command-on-region shell-command-as-string)
do
(eval
`(defadvice ,f (around fix-shell pre act comp)
"Use a sane shell"
(let ((shell-file-name "/bin/bash"))
ad-do-it))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment