Created
August 23, 2014 15:25
-
-
Save tvraman/0e121738f7917a22e458 to your computer and use it in GitHub Desktop.
Advice shell-command and friends to use /bin/bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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