Skip to content

Commit dff7bb0

Browse files
committed
Gardening git-edit command 🌱
1 parent 8e8fded commit dff7bb0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

git-edit

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e
33

44
# open all modified/added files with your $EDITOR
5-
$EDITOR -p $(git status --short | awk '$1 ~ /^M$/ {print $2}')
5+
modified_files=$(git st --short | awk '$1 ~ /^M$/ {print $2}')
6+
nvim -p $modified_files

0 commit comments

Comments
 (0)