LoginSignup
7
4

More than 5 years have passed since last update.

tigでstatus-untracked-dirsが出たときの対処

Posted at

brew updateしたあと、tigコマンドでwarningが出るようになったことへの備忘録です:cry:

tig version

$ tig -v
tig version 2.2.2

warningの内容

$ tig
tig warning: /usr/local/etc/tigrc:90: status-untracked-dirs has been renamed to status-show-untracked-dirs
tig warning: Errors while loading /usr/local/etc/tigrc.

status-untracked-dirsstatus-show-untracked-dirsへの置き換わったらしい。
tigrcなんて設定ファイルがあったのか。。。

brew infoで情報ないか見てみる。

$ brew install tig
==> Downloading https://homebrew.bintray.com/bottles/tig-2.2.2.sierra.bottle.tar.gz
Already downloaded: /Users/jyotti/Library/Caches/Homebrew/tig-2.2.2.sierra.bottle.tar.gz
==> Pouring tig-2.2.2.sierra.bottle.tar.gz
==> Caveats
A sample of the default configuration has been installed to:
  /usr/local/opt/tig/share/tig/examples/tigrc
to override the system-wide default configuration, copy the sample to:
  /usr/local/etc/tigrc

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions and functions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/tig/2.2.2: 12 files, 457.4KB

設定ファイルのサンプルがあるのね。

対処方法

tigの設定はデフォルトのままで使っていたため、exampleからtigrcファイルを置き換かえればwarningが出なくなった:smile:

cp /usr/local/opt/tig/share/tig/examples/tigrc /usr/local/etc/tigrc
7
4
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
7
4