Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • damn. this is EXACTLY what I wanted to do. so simple! tab worked for me although ctrl+alt+e did not. I'm using a mac and iTerm2 to ssh to ubuntu. any way to set up something easier than $PWD? (the all caps is kind of cumbersome) Commented Apr 16, 2012 at 23:17
  • update: on mac OS X I realized I can press escape, then control+e to expand the current line even if bash's tab expansion is not enabled. Commented Mar 12, 2013 at 17:35
  • Right. Esc+Ctrl+e is equivalent to Ctrl+Alt+e. Esc sometimes works when Alt (or I guess Option on Mac?) doesn't. Commented Mar 13, 2013 at 4:02