export TZ='Asia/Shanghai' export TERM="xterm-256color" # color export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode - red export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode - bold, magenta export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us) export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode - yellow export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode - cyan export MANPATH=${MANPATH}:/usr/local/texlive/2017/texmf-dist/doc/man export INFOPATH=${INFOPATH}:/usr/local/texlive/2017/texmf-dist/doc/info export PATH=${PATH}:/usr/local/texlive/2017/bin/x86_64-linux export DYLD_FORCE_FLAT_NAMESPACE=1 # If you come from bash you might have to change your $PATH. # Path to your oh-my-zsh installation. export ZSH=~/.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 POWERLEVEL9K_MODE='nerdfont-complete' # ZSH_THEME="avit" ZSH_THEME="powerlevel9k/powerlevel9k" # 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). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. # 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. # 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" 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) 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" export THEFUCK_RULES='sudo:no_command' export THEFUCK_EXCLUDE_RULES='git_pull:git_push' export THEFUCK_REQUIRE_CONFIRMATION='true' export THEFUCK_WAIT_COMMAND=10 export THEFUCK_NO_COLORS='false' export THEFUCK_PRIORITY='no_command=9999:apt_get=100' export THEFUCK_HISTORY_LIMIT='2000' export HISTTIMEFORMAT='%F %T ' export HISTCONTROL=erasedups export HISTIGNORE="ls:pwd:cd:clear:vim:fg:bg:jobs:top:htop" setopt BANG_HIST setopt SHARE_HISTORY setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_IGNORE_DUPS setopt HIST_IGNORE_ALL_DUPS setopt HIST_FIND_NO_DUPS setopt HIST_IGNORE_SPACE setopt HIST_SAVE_NO_DUPS setopt HIST_REDUCE_BLANKS setopt HIST_VERIFY # prompt_context () {} POWERLEVEL9K_ROOT_ICON="♚" POWERLEVEL9K_BATTERY_CHARGING='yellow' POWERLEVEL9K_BATTERY_CHARGED='green' POWERLEVEL9K_BATTERY_DISCONNECTED='$DEFAULT_COLOR' POWERLEVEL9K_BATTERY_LOW_THRESHOLD='10' POWERLEVEL9K_BATTERY_LOW_COLOR='red' POWERLEVEL9K_BATTERY_ICON='\uf1e6 ' POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='' POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX='\uf0da' POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='yellow' POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='yellow' POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon anaconda status root_indicator dir vcs) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time ram load ssh rbenv rvm) POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle" POWERLEVEL9K_SHORTEN_DIR_LENGTH=4 POWERLEVEL9K_CUSTOM_TIME_FORMAT="%D{\uf017 %H:%M:%S}" POWERLEVEL9K_STATUS_VERBOSE=false POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=true POWERLEVEL9K_PROMPT_ON_NEWLINE=true POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{blue}▶%F{white} " POWERLEVEL9K_OS_ICON_BACKGROUND="55" POWERLEVEL9K_OS_ICON_FOREGROUND="87" POWERLEVEL9K_DIR_HOME_FOREGROUND='black' POWERLEVEL9K_DIR_HOME_BACKGROUND='blue' POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND='black' POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND='blue' POWERLEVEL9K_DIR_HOME_DEFAULT_FOREGROUND='black' POWERLEVEL9K_DIR_HOME_DEFAULT_BACKGROUND='blue' POWERLEVEL9K_STATUS_OK_BACKGROUND='white' POWERLEVEL9K_STATUS_OK_FOREGROUND='black' POWERLEVEL9K_STATUS_ERROR_BACKGROUND='white' POWERLEVEL9K_STATUS_ERROR_FOREGROUND='red' POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND='red' POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND='white' POWERLEVEL9K_ANACONDA_BACKGROUND='yellow' POWERLEVEL9K_ANACONDA_FOREGROUND='black' POWERLEVEL9K_SSH_BACKGROUND='blue' POWERLEVEL9K_SSH_FOREGROUND='black' # alias stoptv='sudo teamviewer --daemon stop' # alias starttv='sudo /home/operations/scripts/tv.sh' # alias ok='clear && cat /home/operations/scripts/ok_script && cat' # PATH="/home/operations/anaconda3/bin:$PATH"; export PATH; # PATH="/home/operations/perl5/bin${PATH:+:${PATH}}"; export PATH; # PERL5LIB="/home/operations/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; # PERL_LOCAL_LIB_ROOT="/home/operations/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; # PERL_MB_OPT="--install_base \"/home/operations/perl5\""; export PERL_MB_OPT; # PERL_MM_OPT="INSTALL_BASE=/home/operations/perl5"; export PERL_MM_OPT;