Skip to content

Commit

Permalink
make find-and-edit work in deeper git subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 21, 2020
1 parent 5fa010a commit 0888cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotfiles/zsh/find-and-edit.zsh
@@ -1,7 +1,7 @@
## finding files quickly

find_and_edit() {
if test -d .git; then
if git status > /dev/null; then
SOURCE="$(git ls-files --others --cached --exclude-standard)"
else
SOURCE="$(find . -type f)"
Expand Down

0 comments on commit 0888cd1

Please sign in to comment.