Changes into the directory of a file. This is useful when you're doing complicated commands with long path names, but realize it would be easier if you were to cd into that directory. Use in combination with <Alt+.>. Especially useful if the filename component is long:
Tried in cygwin and was a no-go.
Tried some other concoctions in stack-overflow without
success.
Then I whiped this one and it worked.
With a warning that will be promptly subdue to >/dev/null
Changes into the directory of a file. This is useful when you're doing complicated commands with long path names, but realize it would be easier if you were to cd into that directory. Use in combination with <Alt+.>. Especially useful if the filename component is long: