Delete until previous punctuation mark in Bash
- by hekevintran
In Bash, Ctrl + W will erase the last word. Bash considers words to be delimited by spaces.
This means that if the cursor is at the end of the string "cd /dir1/dir2/dir3" and you hit Ctrl + W you will be left with "cd ".
Is there a Bash shortcut (custom defined is okay) that will leave me with "cd /dir1/dir2/"?