LoginSignup
2
4

More than 5 years have passed since last update.

zshでEXTENDED_GLOBオプションをセットしているとgit show HEAD^が使えない

Posted at

EXTENDED_GLOBオプション

.zshrcとかにsetopt EXTENDED_GLOBを書いて有効にします。このオプションをつけることによりlsコマンドなどを使いやすくすることができます。例えば、特定ディレクトリにある.txt以外のファイルを探すとき、ls test/^*.txtみたいな書き方ができるようになります。

EXTENDED_GLOBオプションの問題点

コマンドのオプションで^が必要なときにそのまま入力するとエラーになります。
git show HEAD^を使いたいときはgit show HEAD\^のように書く必要があります(まあそれだけのことなんですけどね)

2
4
1

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
2
4