Skip to content

Commit

Permalink
disable nvim's shada file in giteditor to prevent ever jumping into
Browse files Browse the repository at this point in the history
COMMIT_EDITMSG
  • Loading branch information
davidosomething committed May 21, 2024
1 parent d8d95e7 commit 2d17ad4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/giteditor
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ main() {
files+=("$file")
done

[[ "$E_DEBUG" != "" ]] && log "nvim ${files[*]}"
nvim "${files[@]}"
# -i means no shada
[[ "$E_DEBUG" != "" ]] && log "nvim -i NONE ${files[*]}"
nvim -i NONE "${files[@]}"
}

main "$@"

0 comments on commit 2d17ad4

Please sign in to comment.