Created
November 14, 2012 14:39
-
-
Save arbovm/4072493 to your computer and use it in GitHub Desktop.
vi wrapper to parse colon line number adressing in path ( e.g. ~/.ssh/known_hosts:511 )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# put this in your $PATH before /usr/bin, name it vi, chmod +x and enjoy | |
ARGS=$(echo $@ | sed 's/:/ +/g') | |
exec /usr/bin/vi $ARGS | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment