Sublime Text3をターミナルのテキストエディタに設定する
682 ワード
ターミナルにSublimeTextを設定しようとしたところ、以下のようなエラーが出ました。
$ git config --global core.editor "subl -n -w"
$ git commit
hint: Waiting for your editor to close the file... subl -n -w: subl: command not found
error: There was a problem with the editor 'subl -n -w'.
Please supply the message using either -m or -F option.
以下の1行で解決しました。
$ git config --global core.editor "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n -w"
パスが解決できてなかったようです。
Author And Source
この問題について(Sublime Text3をターミナルのテキストエディタに設定する), 我々は、より多くの情報をここで見つけました https://qiita.com/yamaqo/items/a55eaf9e03d72a10cee1著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .