env EDITOR="./test.sh" git commit hint: Waiting for your editor to close the file... -e \x1b]51;["drop", "/home /yota/test/.git/COMMIT_EDITMSG"]\x07 Aborting commit due to empty commit message. drop はファイルを開いた時点で実行完了となるため、このようになる そのため、terminal-api の実行を "いい感じに" 待つような仕組みを考 える必要があった 参考: EDITOR in :terminalを真面目に設定する