Created
July 19, 2014 09:10
-
-
Save johnmckerrell/6fbcbe5d1dee16442423 to your computer and use it in GitHub Desktop.
Simple vi(m) wrapper that names your current screen based on files you open (then pwd when you quit)
This file contains 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 | |
# Simple vi(m) wrapper that names your current screen based on files you open (then pwd when you quit) | |
IFS=$'\n\t' | |
echo -ne '\033k'"$*"'\033\\' | |
/usr/bin/vim $* | |
echo -ne '\033k'`pwd`'\033\\' | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment