From dfe070d9bb050ed8067ed7d11a56fcb3d7fd2898 Mon Sep 17 00:00:00 2001 From: bao3 Date: Sat, 15 Aug 2015 02:54:56 +0800 Subject: [PATCH] LANG UTF-8 --- .zshrc | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.zshrc b/.zshrc index b78a92460..528b0006f 100644 --- a/.zshrc +++ b/.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 [[ -n "$SSH_CLIENT" ]] || export DEFAULT_USER="bao3" #DEFAULT_USER = bao3@cocoMBP @@ -29,7 +19,7 @@ ZSH_THEME="agnoster" # HYPHEN_INSENSITIVE="true" # 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). # export UPDATE_ZSH_DAYS=13 @@ -41,10 +31,10 @@ ZSH_THEME="agnoster" # DISABLE_AUTO_TITLE="true" # 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. -# COMPLETION_WAITING_DOTS="true" +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 @@ -63,7 +53,7 @@ ENABLE_CORRECTION="true" # 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 vi-mode) +plugins=(git osx vi-mode) # User configuration @@ -73,11 +63,12 @@ export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" source $ZSH/oh-my-zsh.sh # 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 # if [[ -n $SSH_CONNECTION ]]; then -# export EDITOR='vim' +# export EDITOR='vi' # else # export EDITOR='mvim' # fi