forked from qiubaiying/qiubaiying.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
layout: post | ||
title: 快速配置zsh | ||
subtitle: zsh的快速配置 | ||
date: 2017-06-19 | ||
author: BY | ||
header-img: img/post-bg-universe.jpg | ||
catalog: true | ||
tags: | ||
- 终端 | ||
- zsh | ||
- Notes | ||
--- | ||
|
||
|
||
> 比较水的 Personal Notes | ||
## 查看你的系统有几种shell | ||
|
||
cat /etc/shells | ||
|
||
显示 | ||
|
||
/bin/bash | ||
/bin/csh | ||
/bin/ksh | ||
/bin/sh | ||
/bin/tcsh | ||
/bin/zsh | ||
|
||
## 安装 oh my zsh | ||
|
||
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | ||
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc | ||
|
||
重新打开终端,输入 | ||
|
||
zsh | ||
|
||
即可切换终端,并且发现 oh my zsh 已经帮我们配置好 zsh 了 | ||
|
||
## 修改主题 | ||
|
||
open ~/.zshrc | ||
|
||
修改 `ZSH_THEME=”robbyrussell”`,主题在 ~/.oh-my-zsh/themes 目录下。 | ||
修改为 | ||
|
||
ZSH_THEME="kolo" | ||
|
||
可以[参照这里](/~https://github.com/robbyrussell/oh-my-zsh/wiki/themes)进行选择. | ||
|
||
## 设置为默认shell | ||
|
||
chsh -s /bin/zsh |