autoload -U colors && colors source ~/.git-prompt.sh if [[ -f ~/.zshrc_local ]] then source ~/.zshrc_local else fi export PATH=$PATH:/opt/cc0/bin:~/bin:/opt/android-studio/bin:/opt/smlnj/bin:~/go/bin export EDITOR=vim export CLICOLOR=1 export MAIL=/var/spool/mail/amgutier export LSCOLORS=DxGxcxdxCxegedabagacad export TERM=xterm-256color #256 color support export LESSOPEN='|/usr/local/bin/lesspipe.sh %s' export LESS_ADVANCED_PREPROCESSOR=1 setopt PROMPT_SUBST ; # for git-prompt export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWSTASHSTATE=1 export GIT_PS1_SHOWUPSTREAM="auto" export GIT_PS1_SHOWCOLORHINTS=1 PS1=$'\n╭%{$fg[yellow]%}$(__git_ps1 "(%s)")%{$fg[green]%}[%~]%{$reset_color%}\n╰%{$fg[cyan]%}%n%{$fg[yellow]%}@%{%F{214}%}%m%f%{$reset_color%}%# ' # set window title to working directory precmd () { print -Pn "\e]0;%~\a" } alias cdg='. cdg' alias coin='rlwrap coin' # by-setup-c0 alias dark='export LC_LIGHT_BG=' alias ed='ed -p:' alias fuck='sudo $(history -p \!\!)' alias grep='grep --color=auto' alias hidden='ls -a | grep "^\..*"' alias killz='killall -9 ' alias light='export LC_LIGHT_BG=1' alias m='ncmpcpp' alias math='rlwrap MathKernel' alias ocaml='rlwrap ocaml' alias ocamldebug='rlwrap ocamldebug' alias rm='rm -i' alias shell='ps -p $$ -o comm=' alias sml='rlwrap sml' alias sshp='ssh -o PubkeyAuthentication=no' alias style='clang-format-3.5 -style=Google' alias telnet='rlwrap telnet' # Enable color support of ls and also add handy aliases # Mac OS doesn't support --color flag for ls, needs -G instead. if [[ `uname` = "Darwin" ]] then alias ls='ls -G' else alias ls='ls --color=auto' fi # Turn off the ability for other people to message your terminal using wall mesg n export SMLNJ_HOME=/usr # The following lines were added by compinstall zstyle :compinstall filename '/home/amgutier/.zshrc' autoload -Uz compinit compinit setopt completeinword zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Variables for man page viewing export HTMLPAGER=w3m # End of lines added by compinstall # Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=250000 SAVEHIST=250000 setopt appendhistory autocd bindkey -v bindkey "^R" history-incremental-search-backward # End of lines configured by zsh-newuser-install