forked from NeilMenne/dot-file
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
48 lines (39 loc) · 1.42 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# use oh my zsh
ZSH=$HOME/.oh-my-zsh
ZSH_THEME=lambda
set -a
PROMPT='%T %? %m%# '
WORDCHARS="*?[]~=&;!#$%^(){}<>"
HISTSIZE=5000
SAVEHIST=5000
HISTFILE=~/.zhistory
plugins=(git battery github node colorize sudo virtualenv brew docker docker-compose lein npm vagrant autoenv zsh-nvm brew-cask)
source $ZSH/oh-my-zsh.sh
# Aliases
alias ll='ls -l'
alias s='git status'
alias b='git branch -av'
alias gg='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
# alias grunt='grunt --no-color'
# alias irc="TERM=screen-256color irssi"
# alias nolimit="sudo sh -c 'ulimit -n 3072 && exec su $LOGNAME'"
alias fv="fortune | tr '[:upper:]' '[:lower:]' | tr '\n' ' ' | sed -r 's/[^a-z]+/-/g' | cut -c 1-60"
alias docker-bounce='\
docker-machine stop default && \
docker-machine start default && \
eval "$(docker-machine env default)"'
setopt HIST_IGNORE_ALL_DUPS
setopt INC_APPEND_HISTORY
[ "$TERM" = dumb ] && unsetopt zle
export EDITOR='emacs'
export NODE_NO_READLINE=1
# Pliny Dev
export AWS_SECRET_KEY_ID=verySecretKey1 \
AWS_ACCESS_KEY_ID=accessKey1 \
S3_HOST=http://$(docker-machine ip default):8000
eval $(docker-machine env default)
# mactex
# eval `/usr/libexec/path_helper -s`
# old things
# export IP=$(ifconfig | grep 'inet ' | grep -v 127\.0\.0\.1 | sed -r 's|[^0-9.]*([^ ]*) .*|\1|' | tail -n 1)
# alias docker-fix="echo nameserver 10.0.0.103 | docker-machine ssh `docker-machine ls -q` 'sudo cat - > /etc/resolv.conf'"