Skip to content

Instantly share code, notes, and snippets.

@rothmichaels
Last active December 14, 2015 06:51
Show Gist options
  • Select an option

  • Save rothmichaels/d99298573e08b9450ae7 to your computer and use it in GitHub Desktop.

Select an option

Save rothmichaels/d99298573e08b9450ae7 to your computer and use it in GitHub Desktop.
Bash sourcing profile/.profile for non-login shells on OS X
#!/usr/bin/env bash
# Place this file in your PATH and
# add the following line to your .emacs.el:
# (setq explicit-shell-file-name "emacs-bash.sh")
bash --init-file <(echo 'source /etc/profile; source ~/.profile')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment