7
7

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.

ログインシェルを変える (bash ←→ fish) [忘備録]

Last updated at Posted at 2019-08-06

普段はfishを使っているのだが、bashを使いたくなるときもあるので、切り替えの方法をメモしておく。

まずはbashが使えるか確認。

$ cat /etc/shells 

# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/fish

/bin/bashとあるので使えますね。

切り替え実行。

$ chsh -s /bin/bash

これでおけ。

fishに戻すときは

$ chsh -s /usr/local/bin/fish

🐟

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?