Macでzshを導入した際のメモ
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Mac全般]]
*環境 [#k793431e]
-MacOS 10.11
-zsh
*zshのインストール+デフォルトのシェルをbashからzshに変更...
$ brew install zsh
$ which zsh
/usr/local/bin/zsh
$ sudo vim /etc/shells
一番最後の行に追加
/usr/local/bin/zsh
$ chsh -s /usr/local/bin/zsh NAME
*oh-my-zshの導入 [#f1911999]
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/...
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
*powerline-fontの導入 [#t7785915]
変更前
echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
± ➦ ✘ ⚡ ⚙
$ git clone https://github.com/powerline/fonts.git
$ cd fonts
$ ./install.sh
$ echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
± ➦ ✘ ⚡ ⚙
note:文字化けが解消しない場合、itermで使用しているフォン...
*gitも補完対象にする [#z08f9466]
$ brew install zsh-completions
$ brew install zsh-completions
$ vim .zshrc
下記を追記
fpath=("inoremap " "/path/to/homebrew/share/zsh-completi...
autoload -U compinit
compinit -u")ZSH_THEME="powerline"ZSH_THEME="powerline"
*zsh powerlineテーマへ変更する [#ca76ee64]
$ git clone https://github.com/jeremyFreeAgent/oh-my-zsh...
$ cd oh-my-zsh-powerline-theme
$ ./install_in_omz.sh
$ vim .zshrc
ZSH_THEME="powerline"
もしくは
ZSH_THEME="agnoster"
$ source .zshrc
終了行:
[[Mac全般]]
*環境 [#k793431e]
-MacOS 10.11
-zsh
*zshのインストール+デフォルトのシェルをbashからzshに変更...
$ brew install zsh
$ which zsh
/usr/local/bin/zsh
$ sudo vim /etc/shells
一番最後の行に追加
/usr/local/bin/zsh
$ chsh -s /usr/local/bin/zsh NAME
*oh-my-zshの導入 [#f1911999]
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/...
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
*powerline-fontの導入 [#t7785915]
変更前
echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
± ➦ ✘ ⚡ ⚙
$ git clone https://github.com/powerline/fonts.git
$ cd fonts
$ ./install.sh
$ echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
± ➦ ✘ ⚡ ⚙
note:文字化けが解消しない場合、itermで使用しているフォン...
*gitも補完対象にする [#z08f9466]
$ brew install zsh-completions
$ brew install zsh-completions
$ vim .zshrc
下記を追記
fpath=("inoremap " "/path/to/homebrew/share/zsh-completi...
autoload -U compinit
compinit -u")ZSH_THEME="powerline"ZSH_THEME="powerline"
*zsh powerlineテーマへ変更する [#ca76ee64]
$ git clone https://github.com/jeremyFreeAgent/oh-my-zsh...
$ cd oh-my-zsh-powerline-theme
$ ./install_in_omz.sh
$ vim .zshrc
ZSH_THEME="powerline"
もしくは
ZSH_THEME="agnoster"
$ source .zshrc
ページ名: