0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

デフォルトshellをフルパスでなくwhichで名前だけで設定するchshはxargsで

Posted at
# fish install(公式からCentOS7版コピペ)
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo
yum install fish -y

# デフォルトshellへ
which fish | xargs chsh -s

パイプだけで引数化できると思ってしまう。
場所は/usr/bin/fishで固定だろうけどなんとなく決め打ちが嫌だっただけで、深い意味もない。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?