Linux CentOS Install zsh, oh-my-zsh, and Autojump__linux

Source: Internet
Author: User
Tags git clone

Zsh. See also: https://www.zhihu.com/question/21418449

Install Zsh

Yum Install-y zsh

After loading, verify that the last line has/bin/zsh

[Root@hadoop3 ~]# cat/etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin
/bin/zsh

Switch Shell to Zsh

Chsh-s/bin/zsh

then echo $SHELL See or bash, a lot of blogs say to restart, in fact, as long as the end of the terminal to open the switch over.

Install Oh-my-zsh

wget Https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh-O-| Sh

Sometimes you can not connect to the GitHub 443 port, download directly

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
CP ~/.oh-my-zsh/templates/ Zshrc.zsh-template ~/.ZSHRC

Go back in and log in and the terminal will be ready.

View Topics

ls. oh-my-zsh/themes

Change the theme inside the ZSHRC into Ys, and the prompt becomes this:

# root @ hadoop3 in ~ [10:59:27]

Install the auto prompt plugin

wget http://mimosa-pudica.net/src/incr-0.2.zsh
mkdir ~/.oh-my-zsh/plugins/incr
mv Incr-0.2.zsh ~/. OH-MY-ZSH/PLUGINS/INCR
Echo ' source ~/.oh-my-zsh/plugins/incr/incr*.zsh ' >> ~/.zshrc
source ~/.ZSHRC

OK, let's have a CD and see if it's cool.

Install AutoJump

I yum source without autojump, download installation directly

git clone git://github.com/joelthelion/autojump.git

autojump/install.py

Installation completed under ~/. AutoJump directory, add a line to the. ZSHRC

[[s ~/.autojump/etc/profile.d/autojump.sh]] &&. ~/.autojump/etc/profile.d/autojump.sh

It's ready, you can use J.
I knocked over the CD ~/GO/SRC/LEARNINGGO/CH2. If you change the current directory, then Knock J 2 back, cool.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.