LoginSignup
1
2

More than 5 years have passed since last update.

iTerm2でoh-my-zhsを使う

Posted at

iTerm2のインストール

こちらからどうぞ。
http://iterm2.com/

自動的にzshが起動するように変更する。

まず、下記のコマンドを叩いてください。

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

上記は、ログインした時に自動で起動できるシェルの一覧です。

/bin/zshがあることを確認したら、下記のコマンドでzshに変更します。

chsh -s /bin/zsh

コマンドを叩いた後は、ターミナルを再起動し、zshが自動で起動されることを確認してください。

oh-my-zshを使ってターミナルを分かりやすくする。

下記を実行してインストールします。

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

下記コマンドを叩いて設定ファイルをいじります。

vim ~/.zshrc

下記の記述の

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"

ZSH_THEME="robbyrussell"のrobbyrussellを好きなテーマ名に変更します。
テーマに関しては、以下のページを見て選んでみてください。(いっぱいありますね・・・!)
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

以上ですー。

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