cat readme.txt
TAB,之后zsh就会把小写的readme改成大写的apt-gte install somefile
,回车后,zsh会提示你是否纠正apt-gte
为apt-get?
输入y
后即是正确命令执行d
,然后看到对应的0-9的目录,输入cd -数字
,即可进入对应的目录。或者直接输入cd -[Tab]
列出目录以供选择$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
zsh配置文件
vim ~/.zshrc
echo $ZSH_THEME
vim ~/.zshrc
修改相应行为:
ZSH_THEME="ys"
ls ~/.oh-my-zsh/plugins
zsh-syntax-highlighting提供语法高亮,
autojump可快速跳转到曾进入过的路径,例如曾进入过/mnt/test1/test2
可在任意目录下使用cd test2进入该目录
zsh-autosuggestions是命令提示插件,按CTRL+F
应用建议
插件安装:
cd ~/.oh-my-zsh/custom/plugins
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
apt-get install autojump
git clone git://github.com/zsh-users/zsh-autosuggestions
编辑配置文件:
vim ~/.zshrc
修改:
plugins=(git autojump zsh-syntax-highlighting zsh-autosuggestions )
使配置生效:
source ~/.zshrc