mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
LANG UTF-8
This commit is contained in:
parent
b83899e868
commit
dfe070d9bb
1 changed files with 7 additions and 16 deletions
23
.zshrc
23
.zshrc
|
|
@ -1,13 +1,3 @@
|
||||||
VIMODE='-- INSERT --'
|
|
||||||
function zle-line-init zle-keymap-select {
|
|
||||||
VIMODE="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
|
|
||||||
zle reset-prompt
|
|
||||||
}
|
|
||||||
zle -N zle-line-init
|
|
||||||
zle -N zle-keymap-select
|
|
||||||
|
|
||||||
RPROMPT='%{$fg[green]%}${VIMODE}%{$reset_color%}'
|
|
||||||
|
|
||||||
DISABLE_UPDATE_PROMPT=true
|
DISABLE_UPDATE_PROMPT=true
|
||||||
[[ -n "$SSH_CLIENT" ]] || export DEFAULT_USER="bao3"
|
[[ -n "$SSH_CLIENT" ]] || export DEFAULT_USER="bao3"
|
||||||
#DEFAULT_USER = bao3@cocoMBP
|
#DEFAULT_USER = bao3@cocoMBP
|
||||||
|
|
@ -29,7 +19,7 @@ ZSH_THEME="agnoster"
|
||||||
# HYPHEN_INSENSITIVE="true"
|
# HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||||
# DISABLE_AUTO_UPDATE="true"
|
DISABLE_AUTO_UPDATE="true"
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
# export UPDATE_ZSH_DAYS=13
|
# export UPDATE_ZSH_DAYS=13
|
||||||
|
|
@ -41,10 +31,10 @@ ZSH_THEME="agnoster"
|
||||||
# DISABLE_AUTO_TITLE="true"
|
# DISABLE_AUTO_TITLE="true"
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
# Uncomment the following line to enable command auto-correction.
|
||||||
ENABLE_CORRECTION="true"
|
ENABLE_CORRECTION="false"
|
||||||
|
|
||||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
# COMPLETION_WAITING_DOTS="true"
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
# Uncomment the following line if you want to disable marking untracked files
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
# under VCS as dirty. This makes repository status check for large repositories
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
|
|
@ -63,7 +53,7 @@ ENABLE_CORRECTION="true"
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(git vi-mode)
|
plugins=(git osx vi-mode)
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
|
|
@ -73,11 +63,12 @@ export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
# You may need to manually set your language environment
|
||||||
# export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
|
export LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
# Preferred editor for local and remote sessions
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
# if [[ -n $SSH_CONNECTION ]]; then
|
||||||
# export EDITOR='vim'
|
# export EDITOR='vi'
|
||||||
# else
|
# else
|
||||||
# export EDITOR='mvim'
|
# export EDITOR='mvim'
|
||||||
# fi
|
# fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue