Skip to content

Instantly share code, notes, and snippets.

@johnmckerrell
Created July 19, 2014 09:10
Show Gist options
  • Save johnmckerrell/6fbcbe5d1dee16442423 to your computer and use it in GitHub Desktop.
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)
#!/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