$ cd !$:h
Uses the last argument of the last executed command, and gets the directory name from it.
Use $!:t for the filename alone, without the dirname.
by David Winterbottom (codeinthehole.com)
$ cd !$:h
Uses the last argument of the last executed command, and gets the directory name from it.
Use $!:t for the filename alone, without the dirname.
by David Winterbottom (codeinthehole.com)
0sem comentários ainda