Created
January 10, 2016 10:16
-
-
Save GreeeenApple/500511a85846187a00f8 to your computer and use it in GitHub Desktop.
This file contains 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
#alias python="bpython" | |
#for i in `seq 5`do echo 1; done | |
alias ls='ls -CF' | |
alias s='ls' | |
alias l='ls -CF' | |
alias ...='cd ../../' | |
alias ....='cd ../../..' | |
alias la='ls -a' | |
alias ll='ls -l' | |
alias lla='ls -la' | |
alias cl='clear' | |
zstyle ':completion:*:default' menu select=1 | |
HISTFILE=~/.zsh_history | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
setopt bang_hist | |
setopt hist_ignore_dups | |
setopt share_history | |
setopt hist_reduce_blanks | |
autoload history-search-end | |
zle -N history-beginning-search-backward-end history-search-end | |
zle -N history-beginning-search-forward-end history-search-end | |
bindkey "^P" history-beginning-search-backward-end | |
bindkey "^N" history-beginning-search-forward-end | |
function history-all { history -E 1 } | |
export LS_COLORS='di=01;34:ln=01;35:so=01;32:ex=01;31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30' | |
export ZLS_COLORS=$LS_COLORS | |
export CLICOLOR=true | |
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
autoload -U colors; colors | |
tmp_prompt="%F{cyan}[%n@%D{%m/%d %T}]%f " | |
tmp_prompt="%{${fg[cyan]}%}%n%# %{${reset_color}%}" | |
tmp_prompt2="%{${fg[cyan]}%}%_> %{${reset_color}%}" | |
tmp_rprompt="%{${fg[green]}%}[%~]%{${reset_color}%}" | |
tmp_sprompt="%{${fg[yellow]}%}%r is correct? [Yes, No, Abort, Edit]:%{${reset_color}%}" | |
if [ ${UID} -eq 0 ]; then | |
tmp_prompt="%B%U${tmp_prompt}%u%b" | |
tmp_prompt2="%B%U${tmp_prompt2}%u%b" | |
tmp_rprompt="%B%U${tmp_rprompt}%u%b" | |
tmp_sprompt="%B%U${tmp_sprompt}%u%b" | |
fi | |
PROMPT=$tmp_prompt | |
PROMPT2=$tmp_prompt2 | |
RPROMPT=$tmp_rprompt | |
SPROMPT=$tmp_sprompt | |
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && | |
PROMPT="%{${fg[white]}%}${HOST%%.*} ${PROMPT}" | |
; | |
function cd() { | |
builtin cd $@ && ls; | |
} | |
PATH=~/tools:$PATH | |
export PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment