add zsh config files

This commit is contained in:
2016-01-14 19:29:22 -05:00
parent 88a8c5790b
commit ef05cc5135
2 changed files with 74 additions and 0 deletions

68
.zshrc Normal file
View File

@@ -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

6
.zshrc.zni Normal file
View File

@@ -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