From ef05cc5135dff5bfc2959afc10b46e716c665a01 Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Thu, 14 Jan 2016 19:29:22 -0500 Subject: [PATCH] add zsh config files --- .zshrc | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ .zshrc.zni | 6 +++++ 2 files changed, 74 insertions(+) create mode 100644 .zshrc create mode 100644 .zshrc.zni diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..d68a570 --- /dev/null +++ b/.zshrc @@ -0,0 +1,68 @@ +autoload -U colors && colors + +source ~/.git-prompt.sh + +export PATH=$PATH:/opt/cc0/bin:~/bin:/opt/android-studio/bin:/opt/smlnj/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' + +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%}%# ' + +alias cdg='. cdg' +alias coin='rlwrap coin' # by-setup-c0 +alias ed='ed -p:' +alias fuck='sudo $(history -p \!\!)' +alias grep='grep --color=auto' +alias hidden='ls -a | grep "^\..*"' +alias killz='killall -9 ' +alias ls="ls --color=always" +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 style='clang-format-3.5 -style=Google' +alias telnet='rlwrap telnet' + +# Turn off the ability for other people to message your terminal using wall +mesg n + +# OPAM configuration +. /home/amgutier/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true +eval `opam config env` + +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}' + +# 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 diff --git a/.zshrc.zni b/.zshrc.zni new file mode 100644 index 0000000..6a08eb4 --- /dev/null +++ b/.zshrc.zni @@ -0,0 +1,6 @@ +# The following lines were added by compinstall +zstyle :compinstall filename '/home/amgutier/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall