Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created November 2, 2012 15:54
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 legumbre/4002203 to your computer and use it in GitHub Desktop.
Save legumbre/4002203 to your computer and use it in GitHub Desktop.
(defadvice shell (around prevent-remote-shells-from-tramp compile activate)
(let ((default-directory (if (file-remote-p default-directory)
"~/" default-directory)))
ad-do-it))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment