Search code examples
macosbashspecial-characterstypingiterm2

With iTerm2 on Mac, how to delete forward a word from cursor on command-line?


With iTerm2 1.0.0 on Mac OS X 10.6.8, I'd like to delete from cursor to the next end of word, i.e. deleting one word forward. I tried Alt+d but this types the delta operator symbol and doesn't delete. How to suppress the typing but let it delete?


Solution

  • I don't have a mac handy, but ESC d should in theory do the same thing that ALT-d does.

    NOTE: this means hitting ESC, releasing it, then hitting d. Look ma, no key chords.