oh-my-zsh安装与配置

1.安装与配置

Setup

oh-my-zshshould work with any recent release of Zsh. The minimum recommended version is 4.3.9.

If not already installed, you can install Zsh using the command-line.

The automatic installer… do you trust me?

You can install this via the command-line with eithercurlorwget.

viacurl:

curl -L http://install.ohmyz.sh | sh

viawget:

wget --no-check-certificate http://install.ohmyz.sh -O - | sh

Optionally, change the install directory:

The default location is~/.oh-my-zsh(hidden in your home directory).

You can change the install directory with theZSHenvironment variable, either by runningexport ZSH=/your/pathbefore installing, or by setting it before the end of the install pipeline like this:

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | ZSH=~/.dotfiles/zsh sh

The manual way

1. Clone the repository:

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

2. Optionally, backup your existing~/.zshrcfile:

cp ~/.zshrc ~/.zshrc.orig

3. Create a new Zsh config file by copying the Zsh template we’ve provided:

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

4. Set Zsh as your default shell:

chsh -s /bin/zsh

5. Start or restart Zsh by opening a new command-line window.

Problems?

You might need to modify yourPATHin~/.zshrcif you’re not able to find some commands after switching tooh-my-zsh.

If you installed manually or changed the install location, check theZSHenvironment variable in~/.zshrc.

Usage

  • enable the plugins you want in your~/.zshrc(take a look at theplugins/directory and the wiki to see what’s available)

    • example:plugins=(git osx ruby)
  • theme support: change theZSH_THEMEenvironment variable in~/.zshrc
    • take a look at thethemes/directory and the wiki to see what comes bundled withoh-my-zsh
  • & much, much more… take a look at thelib/directory to see whatoh-my-zshhas to offer…

Useful

The refcard is pretty useful for tips.

Customization

If you want to override any of the default behaviors, just add a new file (ending in.zsh) in thecustom/directory.

If you have many functions that go well together, you can put them as a*.plugin.zshfile in thecustom/plugins/directory and then enable this plugin (see ‘Usage’ above).

If you would like to override the functionality of a plugin distributed withoh-my-zsh, create a plugin of the same name in thecustom/plugins/directory and it will be loaded instead of the one inplugins/.

Updates

By default you will be prompted to check for upgrades. If you would likeoh-my-zshto automatically upgrade itself without prompting you, set the following in your~/.zshrc:

DISABLE_UPDATE_PROMPT=true

To disable upgrades entirely, set the following in your~/.zshrc:

DISABLE_AUTO_UPDATE=true

To upgrade directly from the command-line, just runupgrade_oh_my_zsh.

Uninstalling

If you want to uninstalloh-my-zsh, just rununinstall_oh_my_zshfrom the command-line and it’ll remove itself and revert you tobash(or your previous Zsh configuration).

2.我的plugins:

aws bunlder docker gem git github heroku node npm postgres python rails4 rake redis-cli ruby rvm sublime vagrant virtualenvwrapper

时间: 2024-10-12 20:44:25

oh-my-zsh安装与配置的相关文章

zsh安装和配置

zsh安装和配置 Zsh是一个Linux用户很少使用的power-shell,这是由于大多数Linux产品安装,以及默认使用bash shell.几乎每一款Linux产品都包含有zsh,通常可以用apt-get.urpmi或yum进行安装.zsh是兼容bash的,但是又比bash好用,有什么理由不用zsh呢? zsh的安装 在终端中输入下面命令进行安装 sudo apt-get install zsh 安装完毕以后,你需要将zsh替换为你的默认shell,之前默认的shell为Bourne Ag

Z shell(zsh)安装-更新-配置-使用

有人演示了一把zsh,看着是挺爽的.这个shell一定有独到之处,于是就捣鼓一把. zsh是同bash一样,也是一中shell,只不过它有自己的不同之处,或优或劣.开始写这篇记录的时候,只是安装配置好它了,还没有来得及尝试体验其“优劣”. 1.安装.zsh在一般的linux发行版本中都默认包含了.看一下你的机器上都有什么shell呢?下面是我的机器上的shell $cat /etc/shells/bin/sh/bin/bash/sbin/nologin/bin/tcsh/bin/csh/bin/

ubuntu 安装并配置zsh

参考: 1.https://www.jianshu.com/p/4fde9ae77922 2.https://www.cnblogs.com/dhcn/p/11666845.html 一.安装zsh 1.源码安装 (1)安装: wget https://sourceforge.net/projects/zsh/files/latest/download tar -xvJf zsh-5.7.1.tar.xz cd zsh-5.7.1 ./configure make sudo make insta

Zsh安装CMake补全脚本进行CMake命令补全

最近在尝试使用Zsh,发现其补全命令的功能相当厉害.但对CMake命令的补全在默认的5.0.5中好像没有看到,网上找了下关于配置Zsh补全的文章也没有多少.     于是自己动手,发现在Zsh安装目录下有个functions的文件夹,里面都有以_开头的各种补全提示文件,比如_sed,_awk等,于是尝试在网上 下到zsh_cmake补全文件之后,重命名为_cmake放置该文件夹中(注意Windows用户的换行符,在这个上浪费了很多时间,使用 dos2unix可以解决)重新启动Zsh,享受CMak

iTerm的安装以及配置

iTerm是类似于DOS命令行的一个工具,和苹果终端类似,但是可以自定义一些配置,本文就是简单的说一下安装和简单的配置过程. 首先就是下载iTerm可以从官网上下载也可以从我的云盘上下载,云盘上的有配置文件,建议新手直接用,官网的下载下来界面不是很好看,高手可以自己调,怎么调今天就先不说了,网上有很多的资料. 官网的地址: http://www.iterm2.com/ 官网下载地址: https://iterm2.com/downloads/stable/iTerm2-3_0_14.zip(这个

Arch Linux 安装、配置、美化和优化

国庆假期玩了下Arch Linux,发现这货跟Ubuntu之流相差甚远,甚难调教,而且安裝过程全命令行,会有各种问题,各种知识... --- 安装引导器--- --------------------------- GRUB BIOS: # pacman -S grub os-prober # grub-install --recheck /dev/<目标磁盘> # grub-mkconfig -o /boot/grub/grub.cfg UEFI:---如果BIOS是UEFI的,就要用下面的

ubuntu16安装与配置

1. ubuntu安装与配置 1.1. 换源 1.2. 卸载libreoffice sudo apt remove libreoffice-common 1.3. 安装git sudo apt install git 1.4. 安装与配置zsh 安装zsh sudo apt install zsh 安装oh-my-zsh sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -

Windows下MySQL下载安装、配置与使用

用过MySQL之后,不论容量的话,发现比其他两个(sql server .oracle)好用的多,一下子就喜欢上了.下面给那些还不知道怎么弄的童鞋们写下具体的方法步骤. (我这个写得有点太详细了,甚至有些繁琐,有很多步骤在其他的教程文档里都是省略掉的,但我还是要写出来,因为我当时走了很多弯路,我希望你们能够避免我走的这些弯路.当然,知道同学的可以略过,选择你想知道的地方看) 第一大步:下载.(不需要注册也可以下载,直接点下面的no thanks) a.俗话说:“巧妇难为无米之炊”嘛!我这里用的是

Centos 7.3下 Linux For SQL Server安装及配置介绍

Centos 7.3下Linux For SQL Server安装及配置介绍 说到SQL Server服务,我们大家都知道是Microsoft公司的数据库服务,当然说到数据库,现在主要分为三大商:1:Oracle.2:Msql Server.3:Mysql:三种数据库在当下环境受到不了不同程度的关注:比如oracle主要应用到大型的商业比较多,比如银行:SQL Server主要在常见的互联网公司使用:mysql主要应用于小型的企业或者服务商使用:当然从费用上来说,Oracle是最贵的,也是最为稳