Created
August 7, 2017 11:57
-
-
Save inkydragon/f579f22a8c764f8d62f4991c9d8bc1bc to your computer and use it in GitHub Desktop.
zsh的配置文件
This file contains hidden or 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/home/wo/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
# 主题设置 | |
# 主题列表在 ~/.oh-my-zsh/themes/ | |
# 如果设置为 "random", 每次开启都会是不同的主题 | |
ZSH_THEME="random" | |
#def "robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. | |
# 大小写敏感 | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. Case | |
# sensitive completion must be off. _ and - will be interchangeable. | |
# 如果想要连接符不敏感,可以取消注释下面的一行。_ 和 - 将可以互换 | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# 如果不想要自动更新,可以取消注释下面的一行 | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# 自动更新的时间间隔,单位是天,这里设置 30 天更新一次 | |
export UPDATE_ZSH_DAYS=30 | |
# Uncomment the following line to disable colors in ls. | |
# 如果不想要 ls 命令输出带颜色 | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# 是否禁止更改终端标题,不要禁止,不然所有终端tab只显示zsh了,而不随着目录的改变而改变显示 | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# 自动纠正命令,不启用,不怎么好用 | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# 按tab键补全命令的时候,如果没什么可补全的就会出现三个红点 | |
COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# 历史命令日期显示格式 | |
# 有三种方式: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd", | |
HIST_STAMPS="yyyy-mm-dd" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git zsh-syntax-highlighting) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/rsa_id" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias cls='clear' | |
alias ll='ls -l' | |
alias la='ls -a' | |
alias grep="grep --color=auto" | |
alias -s html='vim' # 在命令行直接输入后缀为 html 的文件名,会在 Vim 中打开 | |
alias -s rb='vim' # 在命令行直接输入 ruby 文件,会在 Vim 中打开 | |
alias -s py='vim' # 在命令行直接输入 python 文件,会用 vim 中打开,以下类似 | |
alias -s js='vim' | |
alias -s c='vim' | |
alias -s txt='vim' | |
alias -s gz='tar -xzvf' # 在命令行直接输入后缀为 gz 的文件名,会自动解压打开 | |
alias -s tgz='tar -xzvf' | |
alias -s zip='unzip' | |
alias -s bz2='tar -xjvf' | |
# Note the source command must be at the end of ~/.zshrc. | |
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment