Skip to content

Instantly share code, notes, and snippets.

@viskri
Created June 27, 2015 09:54
Show Gist options
  • Save viskri/15e3752ff1d7cafb276e to your computer and use it in GitHub Desktop.
Save viskri/15e3752ff1d7cafb276e to your computer and use it in GitHub Desktop.
Open all the changed files (uncommitted files) in Sublime
#!/usr/bin/env bash
function ch {
printf "Running git status...\n"
printf "Files changed:\n"
filesChanged=`git status -s | cut -c4-`
echo $filesChanged
for word in $filesChanged
do
sublime $word
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment