Created
July 13, 2023 06:43
-
-
Save miyataka/0c947c0467256abce99c83db0be82a3c to your computer and use it in GitHub Desktop.
open files of showed by `git status|diff` by vim
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
# open all modified files | |
function gsv() { | |
vim $(git status --porcelain | awk '{print $2}') | |
} | |
function gdv() { | |
vim $(git diff $1 --name-only) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment