1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Github CLI】ghコマンドのエディタを Neovim に固定する方法

Posted at

設定方法

gh cliを使って、PRの body を書くときなど、折角なら慣れてるNeovimエディタで文章書きたいですよね。

以下コマンドで設定可能です。

gh config set editor nvim

確認方法

以下コマンドで現在の設定状態を確認可能です。

gh config get editor

OS全体のデフォルトエディタも変えたい場合

gh だけでなく、他のコマンドでも Neovim を使いたい場合は、環境変数を設定しておくのがおすすめ。

~/.zshrc(等)
export EDITOR=nvim
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?