mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
update .zshrc & azure.zsh-theme
This commit is contained in:
parent
e7aed72a75
commit
f2ca414da4
2 changed files with 8 additions and 19 deletions
5
.zshrc
5
.zshrc
|
|
@ -49,8 +49,9 @@ ZSH_THEME="azure"
|
||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
# 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/
|
# 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)
|
||||||
plugins=(git)
|
plugins=(git vi-mode)
|
||||||
|
|
||||||
|
source ~/.bash_profile
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
@ -59,7 +60,7 @@ export JAVA_HOME=/home/users/shiludeng/.jumbo/opt/sun-java6
|
||||||
export HADOOP_INSTALL=/home/users/shiludeng/data/dev/hadoop/hadoop
|
export HADOOP_INSTALL=/home/users/shiludeng/data/dev/hadoop/hadoop
|
||||||
#/home/tools/tools/maven/apache-maven-2.2.1/bin
|
#/home/tools/tools/maven/apache-maven-2.2.1/bin
|
||||||
export PATH=$HOME/bin:$HADOOP_INSTALL/bin:/usr/local/bin:$PATH
|
export PATH=$HOME/bin:$HADOOP_INSTALL/bin:/usr/local/bin:$PATH
|
||||||
bash ~/.bash_profile
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
# You may need to manually set your language environment
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ FINISH="%{$terminfo[sgr0]%}"
|
||||||
#}}}
|
#}}}
|
||||||
|
|
||||||
#命令提示符
|
#命令提示符
|
||||||
RPROMPT=$(echo "$RED%D %T$FINISH")
|
#RPROMPT=$(echo "$RED%D %T$FINISH")
|
||||||
PROMPT=$(echo "$CYAN%n@$YELLOW%M:$GREEN%/$_YELLOW>$FINISH ")
|
PROMPT=$(echo "$CYAN%n@$YELLOW%M:$GREEN%/$_YELLOW>$FINISH ")
|
||||||
|
|
||||||
#PROMPT=$(echo "$BLUE%M$GREEN%/
|
#PROMPT=$(echo "$BLUE%M$GREEN%/
|
||||||
|
|
@ -120,8 +120,8 @@ setopt AUTO_MENU
|
||||||
#开启此选项,补全时会直接选中菜单项
|
#开启此选项,补全时会直接选中菜单项
|
||||||
#setopt MENU_COMPLETE
|
#setopt MENU_COMPLETE
|
||||||
|
|
||||||
autoload -U compinit
|
#autoload -U compinit
|
||||||
compinit
|
#compinit
|
||||||
autoload -U select-word-style
|
autoload -U select-word-style
|
||||||
select-word-style whitespace
|
select-word-style whitespace
|
||||||
|
|
||||||
|
|
@ -216,18 +216,6 @@ zle -N user-complete
|
||||||
bindkey "\t" user-complete
|
bindkey "\t" user-complete
|
||||||
#}}}
|
#}}}
|
||||||
|
|
||||||
##在命令前插入 sudo {{{
|
|
||||||
#定义功能
|
|
||||||
sudo-command-line() {
|
|
||||||
[[ -z $BUFFER ]] && zle up-history
|
|
||||||
[[ $BUFFER != sudo\ * ]] && BUFFER="sudo $BUFFER"
|
|
||||||
zle end-of-line #光标移动到行末
|
|
||||||
}
|
|
||||||
zle -N sudo-command-line
|
|
||||||
#定义快捷键为: [Esc] [Esc]
|
|
||||||
bindkey "\e\e" sudo-command-line
|
|
||||||
#}}}
|
|
||||||
|
|
||||||
#命令别名 {{{
|
#命令别名 {{{
|
||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
|
|
@ -352,8 +340,8 @@ autoload -U ~/.zsh/functions/*(:t)
|
||||||
|
|
||||||
# Set the prompt.
|
# Set the prompt.
|
||||||
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
|
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
|
||||||
PROMPT='%{${fg[cyan]}%}┌%n@%{${fg[yellow]}%}%M:%{${fg[cyan]}%}%B%~%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}$(svn_prompt_info)%{${fg[default]}%}%{$fg[cyan]%}
|
PROMPT='%{${fg[cyan]}%}%n@%{${fg[yellow]}%}%M:%{${fg[cyan]}%}%B%/%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}$(svn_prompt_info)%{${fg[default]}%}%{$fg[cyan]%}
|
||||||
└> %'
|
> %'
|
||||||
|
|
||||||
ZSH_PROMPT_BASE_COLOR="%{$fg_bold[blue]%}"
|
ZSH_PROMPT_BASE_COLOR="%{$fg_bold[blue]%}"
|
||||||
ZSH_THEME_REPO_NAME_COLOR="%{$fg_bold[yello]%}"
|
ZSH_THEME_REPO_NAME_COLOR="%{$fg_bold[yello]%}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue