-
-
Save felixrabe/4a2673da8e203af824e6 to your computer and use it in GitHub Desktop.
Reliable subl wrapper
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
#!/usr/bin/env bash | |
if [[ $# -eq 0 ]] ; then | |
subl -w . & | |
else | |
subl -w "$@" & | |
fi | |
sleep 1 | |
kill $! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment