-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-edit-new: quickly edit recently-generated files in your editor
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
# | ||
# Open new, unstaged files in your $EDITOR. | ||
# | ||
# This is nice to have when you run a command line generator which generates a | ||
# file or three in your working directory, and you know you want to immediately | ||
# edit them in your editor next. Why waste time clicking around like some sort | ||
# of plebian when you can just run another command? | ||
|
||
$EDITOR $(git ls-files --others --exclude-standard) |
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