Skip to content

Commit

Permalink
git-edit-new: quickly edit recently-generated files in your editor
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Sep 7, 2017
1 parent 3063cfd commit b943fe1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/git-edit-new
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)
1 change: 1 addition & 0 deletions git/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ alias gcb='git copy-branch-name'
alias gb='git branch'
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias gac='git add -A && git commit -m'
alias ge='git-edit-new'

0 comments on commit b943fe1

Please sign in to comment.