| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- HISTFILE=~/.histfile
- HISTSIZE=1000000
- SAVEHIST=1000000
- setopt incappendhistory nomatch correct NO_HUP
- unsetopt beep
- bindkey -v
- zstyle :compinstall filename '/Users/drew/.zshrc'
- autoload -Uz compinit
- compinit
- autoload -U colors && colors
- # Have to reset color to cyan after the bold tags for some reason.
- PROMPT="%{$fg[cyan]%}[%n@%M %B%1~%b%{$fg[cyan]%}]%# %{$reset_color%}"
- alias ll='ls -alF'
- alias la='ls -A'
- alias l='ls -CF'
- alias ls='ls -G'
- export EDITOR="nvim"
- alias vim="nvim"
- # OS X completions
- fpath=(/opt/homebrew/share/zsh-completions $fpath)
- source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- dot_sync() {
- current_branch=$(git branch | grep '\*.*' | cut -d '*' -f 2 | tr -d ' ')
- if [ -z "$1" ]; then
- 1=$current_branch
- fi
- for branch in $(git branch | grep '^[^*].*$'); do
- git ch $branch
- git cherry-pick $1 || { echo 'Problems.. manually cherry-pick'; return 0 }
- done
- git ch $current_branch
- }
- rmorig() {
- if [ "$1" = "-f" ]; then
- find . -name "*.orig" -print -delete
- else
- find . -name "*.orig" -print
- fi
- }
- # Set Home, End, Del, PgUp, PgDown keys to actually do something.
- bindkey '^[OH' beginning-of-line
- bindkey '^[OF' end-of-line
- bindkey '^[[3~' delete-char
- bindkey '^[[5~' beginning-of-buffer-or-history
- bindkey '^[[6~' end-of-buffer-or-history
- bindkey '^R' history-incremental-search-backward
- export PAGER=less
- export DOTFILES=$HOME/Documents/dotfiles
- export PATH=$DOTFILES/bin:$PATH
- export PATH=$PATH:$HOME/.rvm/bin
- export PATH=$PATH:$GOPATH/bin
- export PATH=$PATH:$HOME/.cargo/bin
- export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/src
- alias ack=ag
- # added by travis gem
- [ -f $HOME/.travis/travis.sh ] && source $HOME/.travis/travis.sh
- export DOTNET_CLI_TELEMETRY_OPTOUT=1
- export PATH="/usr/local/opt/icu4c/bin:$PATH"
- export PATH="/usr/local/opt/icu4c/sbin:$PATH"
- export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
- export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
- [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
- plugins=(
- aws
- bundler
- cargo
- docker
- docker-compose
- git
- npm
- npx
- rails
- rake
- ruby
- rust
- rvm
- rvm
- yarn
- )
- eval "$(/opt/homebrew/bin/brew shellenv)"
- export NVM_DIR="$HOME/.nvm"
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
- export GPG_TTY=$(tty)
|