Skip to content

Instantly share code, notes, and snippets.

@mwilliams
Created December 30, 2009 21:10
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 mwilliams/266391 to your computer and use it in GitHub Desktop.
Save mwilliams/266391 to your computer and use it in GitHub Desktop.
Welcome to the Emacs shell
~ $ which ruby
/usr/bin/ruby
➜ ~ which ruby
/Users/mwilliams/.rvm/ruby-1.8.7-p174/bin/ruby
(setenv "PATH" (concat (getenv "PATH") ":/Users/mwilliams/.rvm/ruby-1.8.7-p174/bin:/usr/local/bin:"))
(setq exec-path (append exec-path '("/usr/local/bin")))
(setenv "ESHELL" (expand-file-name "~/bin/eshell"))
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment