4WUPW3DVDVW4PIEGD6GX56NEKYDJZSJ5UNHOTKRO66FFKFLOQ3OQC echo plugins done
PATH="${PATH%%:<<<:*}:${PATH##*:>>>:}"prepend_exe_path "$HOME/cj-projects/software/bin"prepend_exe_path "$HOME/cj-projects/software/resin/3.1.8-pro/bin"prepend_exe_path "$HOME/pfff/bin"prepend_exe_path "$HOME/Library/Python/2.7/bin"prepend_exe_path "$HOME/go/bin"prepend_exe_path "$HOME/.rvm/bin"prepend_exe_path /Library/Frameworks/Mono.framework/Versions/Current/Commandsprepend_exe_path /usr/local/share/dotnetprepend_exe_path /binprepend_exe_path /usr/binprepend_exe_path /Developer/usr/binprepend_exe_path /usr/local/binprepend_exe_path "$HOME/.cargo/bin"prepend_exe_path /opt/local/binprepend_exe_path /usr/X11/binprepend_exe_path "$HOME/vim8/bin"prepend_exe_path "$HOME/.cabal/bin"prepend_exe_path "$HOME/.local/bin"prepend_exe_path /Library/Java/Home/binprepend_exe_path "$HOME/.nix-profile/bin"prepend_exe_path "$HOME/bin"prepend_exe_path /sbinprepend_exe_path /usr/sbinprepend_exe_path /usr/local/sbinprepend_exe_path /opt/local/sbinprepend_exe_path "$HOME/.nix-profile/sbin"PATH="${PATH%:}"
if [[ -e /etc/sysconfig/zsh-prompt-$TERM ]]; then. /etc/sysconfig/zsh-prompt-$TERMelif [[ -e $HOME/.zsh-prompt-$TERM ]]; then. $HOME/.zsh-prompt-$TERMfifunction battery_charge() {if [[ -x "$HOME/bin/batcharge.py" ]]; thenif [[ $LAPTOP[1] == 'y' && $TERM != "xterm" ]]; thenpython "$HOME/bin/batcharge.py" 2>/dev/nullfielsereturn 1fi}zstyle ':vcs_info:*' actionformats \'%F{5}%f%s%F{5}%F{3}->%F{5}%F{2}%b%F{3}|%F{1}%a%F{5}%f'zstyle ':vcs_info:*' formats \'%F{5}%f%s%F{5}%F{3}->%F{5}%F{2}%b%F{5}%f'zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'zstyle ':vcs_info:*' enable git cvs svnvcs_info_wrapper() {vcs_infoif [ -n "$vcs_info_msg_0_" ]; thenecho "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del"fi}# indicate whether we're in insert modefunction zle-line-init zle-keymap-select {RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"RPS2=$RPS1zle reset-prompt}zle -N zle-line-initzle -N zle-keymap-selectexport PYTHONSTARTUP=$HOME/Library/Python/2.7/site-packages/sitecustomize.pyPROMPT='---(%?) %m:%n--%l ${PWD/$HOME/~} `vcs_info_wrapper` `battery_charge`%!:%# 'export PROMPTHOSTNAME=`hostname -f`PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'cmdtermtitle() {cmd_name="${(V)1}"if [ 'fg' = "${${(z)@}[1]}" ]; thencmd_name="${(vV)jobtexts}"fiif [[ "${TERM%%-*}"x == "screen"x ]]; thenecho -ne "\033]0;${cmd_name}\007"elseecho -ne "\033]0; ${cmd_name} : ${USER}@$HOSTNAME\007"fi}if [[ $TERM != "linux" && ${TERM%-color} != "eterm" ]]; thenadd-zsh-hook preexec cmdtermtitlefitermtitle() {npwd=${PWD/#$HOME/\~}if [[ "${TERM%%-*}"x == "screen"x ]]; thenecho -ne "\033]0;${npwd}\007"elseecho -ne "\033]0;${USER}@$HOSTNAME: ${npwd}\007"fi}if [[ $TERM != "linux" && ${TERM%-color} != "eterm" ]]; thenadd-zsh-hook precmd termtitlefi""if battery_charge 2>&1 >/dev/null; thenPROMPT='---(%?) %m:%n--%l %~ `vcs_info_wrapper` `battery_charge 2>/dev/null`%!:%# 'elsePROMPT=$'---\n$(doing)${$(doing):+\n}(%?) %m:%n--%l %~ `vcs_info_wrapper` `date +"%Y-%m-%d %H:%M:%S"`%!:%# 'fiexport PROMPT
TODO_DIR="$HOME/.todos"if [[ ! -d "$TODO_DIR" ]]; thenmkdir -p "$TODO_DIR"/{shells,archive}fids() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/shells/$$.txt"}td() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/current"}pop-todo() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" ]]; thenmv "$shell_file" "$TODO_DIR/archive/$$.$(date +"%Y-%m-%d--%H-%M-%S")"returnfiif [[ -f "$day_file" ]]; thenmv "$day_file" "$TODO_DIR/archive/current.$(date +"%Y-%m-%d--%H-%M-%S")"returnfi}doing() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" || -f "$day_file" ]]; thenprintf '\033[0;33mTODO: \033[0m'fiif [[ -f "$shell_file" ]]; thencat "$shell_file" | tr '\n' ' 'elif [[ -f "$day_file" ]]; thencat "$day_file" | tr '\n' ' 'fiif [[ -f "$shell_file" || -f "$day_file" ]]; thenechofi}
if [[ $TERM != 'dumb' ]]; then# Solarized dircolors:CLICOLOR=1LS_COLORS='no=00;38;5;244:rs=0:di=00;38;5;33:ln=00;38;5;37:mh=00:pi=48;5;230;38;5;136;01:so=48;5;230;38;5;136;01:do=48;5;230;38;5;136;01:bd=48;5;230;38;5;244;01:cd=48;5;230;38;5;244;01:or=48;5;235;38;5;160:su=48;5;160;38;5;230:sg=48;5;136;38;5;230:ca=30;41:tw=48;5;64;38;5;230:ow=48;5;235;38;5;33:st=48;5;33;38;5;230:ex=00;38;5;64:*.tar=00;38;5;61:*.tgz=00;38;5;61:*.arj=00;38;5;61:*.taz=00;38;5;61:*.lzh=00;38;5;61:*.lzma=00;38;5;61:*.tlz=00;38;5;61:*.txz=00;38;5;61:*.zip=00;38;5;61:*.z=00;38;5;61:*.Z=00;38;5;61:*.dz=00;38;5;61:*.gz=00;38;5;61:*.lz=00;38;5;61:*.xz=00;38;5;61:*.bz2=00;38;5;61:*.bz=00;38;5;61:*.tbz=00;38;5;61:*.tbz2=00;38;5;61:*.tz=00;38;5;61:*.deb=00;38;5;61:*.rpm=00;38;5;61:*.jar=00;38;5;61:*.rar=00;38;5;61:*.ace=00;38;5;61:*.zoo=00;38;5;61:*.cpio=00;38;5;61:*.7z=00;38;5;61:*.rz=00;38;5;61:*.apk=00;38;5;61:*.gem=00;38;5;61:*.jpg=00;38;5;136:*.JPG=00;38;5;136:*.jpeg=00;38;5;136:*.gif=00;38;5;136:*.bmp=00;38;5;136:*.pbm=00;38;5;136:*.pgm=00;38;5;136:*.ppm=00;38;5;136:*.tga=00;38;5;136:*.xbm=00;38;5;136:*.xpm=00;38;5;136:*.tif=00;38;5;136:*.tiff=00;38;5;136:*.png=00;38;5;136:*.PNG=00;38;5;136:*.svg=00;38;5;136:*.svgz=00;38;5;136:*.mng=00;38;5;136:*.pcx=00;38;5;136:*.dl=00;38;5;136:*.xcf=00;38;5;136:*.xwd=00;38;5;136:*.yuv=00;38;5;136:*.cgm=00;38;5;136:*.emf=00;38;5;136:*.eps=00;38;5;136:*.CR2=00;38;5;136:*.ico=00;38;5;136:*.tex=00;38;5;245:*.rdf=00;38;5;245:*.owl=00;38;5;245:*.n3=00;38;5;245:*.ttl=00;38;5;245:*.nt=00;38;5;245:*.torrent=00;38;5;245:*.xml=00;38;5;245:*Makefile=00;38;5;245:*Rakefile=00;38;5;245:*Dockerfile=00;38;5;245:*build.xml=00;38;5;245:*rc=00;38;5;245:*1=00;38;5;245:*.nfo=00;38;5;245:*README=00;38;5;245:*README.txt=00;38;5;245:*readme.txt=00;38;5;245:*.md=00;38;5;245:*README.markdown=00;38;5;245:*.ini=00;38;5;245:*.yml=00;38;5;245:*.cfg=00;38;5;245:*.conf=00;38;5;245:*.c=00;38;5;245:*.cpp=00;38;5;245:*.cc=00;38;5;245:*.sqlite=00;38;5;245:*.go=00;38;5;245:*.log=00;38;5;240:*.bak=00;38;5;240:*.aux=00;38;5;240:*.lof=00;38;5;240:*.lol=00;38;5;240:*.lot=00;38;5;240:*.out=00;38;5;240:*.toc=00;38;5;240:*.bbl=00;38;5;240:*.blg=00;38;5;240:*~=00;38;5;240:*#=00;38;5;240:*.part=00;38;5;240:*.incomplete=00;38;5;240:*.swp=00;38;5;240:*.tmp=00;38;5;240:*.temp=00;38;5;240:*.o=00;38;5;240:*.pyc=00;38;5;240:*.class=00;38;5;240:*.cache=00;38;5;240:*.aac=00;38;5;166:*.au=00;38;5;166:*.flac=00;38;5;166:*.mid=00;38;5;166:*.midi=00;38;5;166:*.mka=00;38;5;166:*.mp3=00;38;5;166:*.mpc=00;38;5;166:*.ogg=00;38;5;166:*.ra=00;38;5;166:*.wav=00;38;5;166:*.m4a=00;38;5;166:*.axa=00;38;5;166:*.oga=00;38;5;166:*.spx=00;38;5;166:*.xspf=00;38;5;166:*.mov=00;38;5;166:*.MOV=00;38;5;166:*.mpg=00;38;5;166:*.mpeg=00;38;5;166:*.m2v=00;38;5;166:*.mkv=00;38;5;166:*.ogm=00;38;5;166:*.mp4=00;38;5;166:*.m4v=00;38;5;166:*.mp4v=00;38;5;166:*.vob=00;38;5;166:*.qt=00;38;5;166:*.nuv=00;38;5;166:*.wmv=00;38;5;166:*.asf=00;38;5;166:*.rm=00;38;5;166:*.rmvb=00;38;5;166:*.flc=00;38;5;166:*.avi=00;38;5;166:*.fli=00;38;5;166:*.flv=00;38;5;166:*.gl=00;38;5;166:*.m2ts=00;38;5;166:*.divx=00;38;5;166:*.webm=00;38;5;166:*.axv=00;38;5;166:*.anx=00;38;5;166:*.ogv=00;38;5;166:*.ogx=00;38;5;166:';export LS_COLORS CLICOLOR LSCOLORSif command -v "${GNU_PREFIX}ls" 2>&1 > /dev/null; thenls() {"${GNU_PREFIX}ls" --color=auto "$@"}fifi
echo plugins done
PATH="${PATH%%:<<<:*}:${PATH##*:>>>:}"prepend_exe_path "$HOME/cj-projects/software/bin"prepend_exe_path "$HOME/cj-projects/software/resin/3.1.8-pro/bin"prepend_exe_path "$HOME/pfff/bin"prepend_exe_path "$HOME/Library/Python/2.7/bin"prepend_exe_path "$HOME/go/bin"prepend_exe_path "$HOME/.rvm/bin"prepend_exe_path /Library/Frameworks/Mono.framework/Versions/Current/Commandsprepend_exe_path /usr/local/share/dotnetprepend_exe_path /binprepend_exe_path /usr/binprepend_exe_path /Developer/usr/binprepend_exe_path /usr/local/binprepend_exe_path "$HOME/.cargo/bin"prepend_exe_path /opt/local/binprepend_exe_path /usr/X11/binprepend_exe_path "$HOME/vim8/bin"prepend_exe_path "$HOME/.cabal/bin"prepend_exe_path "$HOME/.local/bin"prepend_exe_path /Library/Java/Home/binprepend_exe_path "$HOME/.nix-profile/bin"prepend_exe_path "$HOME/bin"prepend_exe_path /sbinprepend_exe_path /usr/sbinprepend_exe_path /usr/local/sbinprepend_exe_path /opt/local/sbinprepend_exe_path "$HOME/.nix-profile/sbin"PATH="${PATH%:}"
if [[ -e /etc/sysconfig/zsh-prompt-$TERM ]]; then. /etc/sysconfig/zsh-prompt-$TERMelif [[ -e $HOME/.zsh-prompt-$TERM ]]; then. $HOME/.zsh-prompt-$TERMfifunction battery_charge() {if [[ -x "$HOME/bin/batcharge.py" ]]; thenif [[ $LAPTOP[1] == 'y' && $TERM != "xterm" ]]; thenpython "$HOME/bin/batcharge.py" 2>/dev/nullfielsereturn 1fi}zstyle ':vcs_info:*' actionformats \'%F{5}%f%s%F{5}%F{3}->%F{5}%F{2}%b%F{3}|%F{1}%a%F{5}%f'zstyle ':vcs_info:*' formats \'%F{5}%f%s%F{5}%F{3}->%F{5}%F{2}%b%F{5}%f'zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'zstyle ':vcs_info:*' enable git cvs svnvcs_info_wrapper() {vcs_infoif [ -n "$vcs_info_msg_0_" ]; thenecho "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del"fi}# indicate whether we're in insert modefunction zle-line-init zle-keymap-select {RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"RPS2=$RPS1zle reset-prompt}zle -N zle-line-initzle -N zle-keymap-selectexport PYTHONSTARTUP=$HOME/Library/Python/2.7/site-packages/sitecustomize.pyPROMPT='---(%?) %m:%n--%l ${PWD/$HOME/~} `vcs_info_wrapper` `battery_charge`%!:%# 'export PROMPTHOSTNAME=`hostname -f`PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'cmdtermtitle() {cmd_name="${(V)1}"if [ 'fg' = "${${(z)@}[1]}" ]; thencmd_name="${(vV)jobtexts}"fiif [[ "${TERM%%-*}"x == "screen"x ]]; thenecho -ne "\033]0;${cmd_name}\007"elseecho -ne "\033]0; ${cmd_name} : ${USER}@$HOSTNAME\007"fi}if [[ $TERM != "linux" && ${TERM%-color} != "eterm" ]]; thenadd-zsh-hook preexec cmdtermtitlefitermtitle() {npwd=${PWD/#$HOME/\~}if [[ "${TERM%%-*}"x == "screen"x ]]; thenecho -ne "\033]0;${npwd}\007"elseecho -ne "\033]0;${USER}@$HOSTNAME: ${npwd}\007"fi}if [[ $TERM != "linux" && ${TERM%-color} != "eterm" ]]; thenadd-zsh-hook precmd termtitlefi""if battery_charge 2>&1 >/dev/null; thenPROMPT='---(%?) %m:%n--%l %~ `vcs_info_wrapper` `battery_charge 2>/dev/null`%!:%# 'elsePROMPT=$'---\n$(doing)${$(doing):+\n}(%?) %m:%n--%l %~ `vcs_info_wrapper` `date +"%Y-%m-%d %H:%M:%S"`%!:%# 'fiexport PROMPT
TODO_DIR="$HOME/.todos"if [[ ! -d "$TODO_DIR" ]]; thenmkdir -p "$TODO_DIR"/{shells,archive}fids() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/shells/$$.txt"}td() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/current"}pop-todo() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" ]]; thenmv "$shell_file" "$TODO_DIR/archive/$$.$(date +"%Y-%m-%d--%H-%M-%S")"returnfiif [[ -f "$day_file" ]]; thenmv "$day_file" "$TODO_DIR/archive/current.$(date +"%Y-%m-%d--%H-%M-%S")"returnfi}doing() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" || -f "$day_file" ]]; thenprintf '\033[0;33mTODO: \033[0m'fiif [[ -f "$shell_file" ]]; thencat "$shell_file" | tr '\n' ' 'elif [[ -f "$day_file" ]]; thencat "$day_file" | tr '\n' ' 'fiif [[ -f "$shell_file" || -f "$day_file" ]]; thenechofi}
if [[ $TERM != 'dumb' ]]; then# Solarized dircolors:CLICOLOR=1LS_COLORS='no=00;38;5;244:rs=0:di=00;38;5;33:ln=00;38;5;37:mh=00:pi=48;5;230;38;5;136;01:so=48;5;230;38;5;136;01:do=48;5;230;38;5;136;01:bd=48;5;230;38;5;244;01:cd=48;5;230;38;5;244;01:or=48;5;235;38;5;160:su=48;5;160;38;5;230:sg=48;5;136;38;5;230:ca=30;41:tw=48;5;64;38;5;230:ow=48;5;235;38;5;33:st=48;5;33;38;5;230:ex=00;38;5;64:*.tar=00;38;5;61:*.tgz=00;38;5;61:*.arj=00;38;5;61:*.taz=00;38;5;61:*.lzh=00;38;5;61:*.lzma=00;38;5;61:*.tlz=00;38;5;61:*.txz=00;38;5;61:*.zip=00;38;5;61:*.z=00;38;5;61:*.Z=00;38;5;61:*.dz=00;38;5;61:*.gz=00;38;5;61:*.lz=00;38;5;61:*.xz=00;38;5;61:*.bz2=00;38;5;61:*.bz=00;38;5;61:*.tbz=00;38;5;61:*.tbz2=00;38;5;61:*.tz=00;38;5;61:*.deb=00;38;5;61:*.rpm=00;38;5;61:*.jar=00;38;5;61:*.rar=00;38;5;61:*.ace=00;38;5;61:*.zoo=00;38;5;61:*.cpio=00;38;5;61:*.7z=00;38;5;61:*.rz=00;38;5;61:*.apk=00;38;5;61:*.gem=00;38;5;61:*.jpg=00;38;5;136:*.JPG=00;38;5;136:*.jpeg=00;38;5;136:*.gif=00;38;5;136:*.bmp=00;38;5;136:*.pbm=00;38;5;136:*.pgm=00;38;5;136:*.ppm=00;38;5;136:*.tga=00;38;5;136:*.xbm=00;38;5;136:*.xpm=00;38;5;136:*.tif=00;38;5;136:*.tiff=00;38;5;136:*.png=00;38;5;136:*.PNG=00;38;5;136:*.svg=00;38;5;136:*.svgz=00;38;5;136:*.mng=00;38;5;136:*.pcx=00;38;5;136:*.dl=00;38;5;136:*.xcf=00;38;5;136:*.xwd=00;38;5;136:*.yuv=00;38;5;136:*.cgm=00;38;5;136:*.emf=00;38;5;136:*.eps=00;38;5;136:*.CR2=00;38;5;136:*.ico=00;38;5;136:*.tex=00;38;5;245:*.rdf=00;38;5;245:*.owl=00;38;5;245:*.n3=00;38;5;245:*.ttl=00;38;5;245:*.nt=00;38;5;245:*.torrent=00;38;5;245:*.xml=00;38;5;245:*Makefile=00;38;5;245:*Rakefile=00;38;5;245:*Dockerfile=00;38;5;245:*build.xml=00;38;5;245:*rc=00;38;5;245:*1=00;38;5;245:*.nfo=00;38;5;245:*README=00;38;5;245:*README.txt=00;38;5;245:*readme.txt=00;38;5;245:*.md=00;38;5;245:*README.markdown=00;38;5;245:*.ini=00;38;5;245:*.yml=00;38;5;245:*.cfg=00;38;5;245:*.conf=00;38;5;245:*.c=00;38;5;245:*.cpp=00;38;5;245:*.cc=00;38;5;245:*.sqlite=00;38;5;245:*.go=00;38;5;245:*.log=00;38;5;240:*.bak=00;38;5;240:*.aux=00;38;5;240:*.lof=00;38;5;240:*.lol=00;38;5;240:*.lot=00;38;5;240:*.out=00;38;5;240:*.toc=00;38;5;240:*.bbl=00;38;5;240:*.blg=00;38;5;240:*~=00;38;5;240:*#=00;38;5;240:*.part=00;38;5;240:*.incomplete=00;38;5;240:*.swp=00;38;5;240:*.tmp=00;38;5;240:*.temp=00;38;5;240:*.o=00;38;5;240:*.pyc=00;38;5;240:*.class=00;38;5;240:*.cache=00;38;5;240:*.aac=00;38;5;166:*.au=00;38;5;166:*.flac=00;38;5;166:*.mid=00;38;5;166:*.midi=00;38;5;166:*.mka=00;38;5;166:*.mp3=00;38;5;166:*.mpc=00;38;5;166:*.ogg=00;38;5;166:*.ra=00;38;5;166:*.wav=00;38;5;166:*.m4a=00;38;5;166:*.axa=00;38;5;166:*.oga=00;38;5;166:*.spx=00;38;5;166:*.xspf=00;38;5;166:*.mov=00;38;5;166:*.MOV=00;38;5;166:*.mpg=00;38;5;166:*.mpeg=00;38;5;166:*.m2v=00;38;5;166:*.mkv=00;38;5;166:*.ogm=00;38;5;166:*.mp4=00;38;5;166:*.m4v=00;38;5;166:*.mp4v=00;38;5;166:*.vob=00;38;5;166:*.qt=00;38;5;166:*.nuv=00;38;5;166:*.wmv=00;38;5;166:*.asf=00;38;5;166:*.rm=00;38;5;166:*.rmvb=00;38;5;166:*.flc=00;38;5;166:*.avi=00;38;5;166:*.fli=00;38;5;166:*.flv=00;38;5;166:*.gl=00;38;5;166:*.m2ts=00;38;5;166:*.divx=00;38;5;166:*.webm=00;38;5;166:*.axv=00;38;5;166:*.anx=00;38;5;166:*.ogv=00;38;5;166:*.ogx=00;38;5;166:';export LS_COLORS CLICOLOR LSCOLORSif command -v "${GNU_PREFIX}ls" 2>&1 > /dev/null; thenls() {"${GNU_PREFIX}ls" --color=auto "$@"}fifi