brew update
したあと、tigコマンドでwarningが出るようになったことへの備忘録です
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-dirs
はstatus-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が出なくなった
cp /usr/local/opt/tig/share/tig/examples/tigrc /usr/local/etc/tigrc