zsh 을 이용하면 다양한 테마를 사용할 수 있고 이 테마들은 각 작업때마다 터미널에 관련 작업 상태들을 표시해주어 편리합니다. 예를들어 git 를 사용하시는 분들은 zsh 를 설치하고 테마를 설정해주면 터미널에 git 관련 상태들이 프롬프트에 표시되어 편리합니다. 이 문서는 Ubuntu 에 zsh 설정하기 에 관한 글 입니다. zsh 설치 Ubuntu 의 경우 zsh 설치는 아주 쉽습니다. apt-get 을 이용해서 설치합니다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# apt-get install zsh Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: zsh-common Suggested packages: zsh-doc The following NEW packages will be installed: zsh zsh-common 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 2,726 kB of archives. After this operation, 11.4 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main zsh-common all 5.0.2-3ubuntu6 [2,119 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main zsh amd64 5.0.2-3ubuntu6 [607 kB] |
테마 설치 및 설정 테마는 각 계정당 해줍니다. 사용할 계정에 설정을 해주시면 됩니다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
$ wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh --2015-09-16 16:54:57-- https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh Resolving github.com (github.com)... 192.30.252.129 Connecting to github.com (github.com)|192.30.252.129|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh [following] --2015-09-16 16:54:58-- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 103.245.222.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|103.245.222.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2331 (2.3K) [text/plain] Saving to: ‘install.sh’ 100%[=========================================================================================================================================>] 2,331 --.-K/s in 0s 2015-09-16 16:54:58 (214 MB/s) - ‘install.sh’ saved [2331/2331] $ sh install.sh Cloning Oh My Zsh... Cloning into '/home/salt/.oh-my-zsh'... remote: Counting objects: 680, done. remote: Compressing objects: 100% (552/552), done. remote: Total 680 (delta 15), reused 508 (delta 3), pack-reused 0 Receiving objects: 100% (680/680), 418.75 KiB | 301.00 KiB/s, done. Resolving deltas: 100% (15/15), done. Checking connectivity... done. Looking for an existing zsh config... Using the Oh My Zsh template file and adding it to ~/.zshrc Copying your current PATH and adding it to the end of ~/.zshrc for you. Time to change your default shell to zsh! Password: __ __ ____ / /_ ____ ___ __ __ ____ _____/ /_ / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ / /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / \____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ /____/ ....is now installed! Please look over the ~/.zshrc file to select plugins, themes, and options. p.s. Follow us at http://twitter.com/ohmyzsh. p.p.s. Get stickers and t-shirts at http://shop.planetargon.com. ➜ ~ |
마지막에 기본쉘을 바꾸기위해서 사용자 계정의 패스워드를 물어보고 […]