-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
96 lines (74 loc) · 2.29 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- sh -*-
if [[ $TERM == "dumb" ]]; then
zmodload zsh/zle
unset zle_bracketed_paste
PS1="$ "
return 0
fi
source $HOME/.dotfiles/zsh-async/async.zsh && async_init
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.dotfiles/oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="hab"
local helpers_dir=$(printf "${ZSH}/helper-bins/bin-%s-%s" $(uname -sm))
export PATH="${PATH}:${helpers_dir}"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
export DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(zsh-syntax-highlighting passacre)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
source $HOME/.dotfiles/compy-specific.sh
export PATH="$HOME/.local/bin:$HOME/.local/sbin:$PATH"
bindkey '\e.' insert-last-word
setopt transientrprompt extendedhistory histignoredups histexpiredupsfirst \
histfindnodups histsavenodups histreduceblanks auto_cd
unsetopt correct_all
HISTSIZE=10000000
SAVEHIST=10000000
cdpath=("$HOME/Projects")
export OCAMLRUNPARAM=b
: ${LANG:=en_US.UTF-8}; export LANG
export EDITOR="$(which emacsclient) --alternate-editor ex"
alias e="${EDITOR} --no-wait"
alias magit="${HOME}/.dotfiles/emacs.d/emacsclient-magit.el"
alias HEAD="curl --head"
alias pc="passacre generate -c"
alias pcc="pc -C"
alias pce="${EDITOR:-emacs} ~/.passacre.yaml"
alias pcs="passacre sitehash -c"
alias pcw="pc -C -w 10"
alias tpng="pngpaste - | tshort -e .png"
alias tpaste="pbpaste - | tshort -e .txt"
alias reset="tput reset rmcup"
mkproj () {
local dir=$HOME/Projects/$(date +"%Y%m%d-$1")
mkdir -p "$dir"
cd "$dir"
}
mkc () {
mkdir -p "$1"
cd "$1"
}
mkt () {
d="${TMPDIR:-/tmp}/interactiveXXXXX-${1:-dir}"
cd $(mktemp -d "${d}")
}
t () {
host=$1
shift
ssh -tt "${host}" "$@"
}
gffm () {
git merge --ff-only ${1:-origin}/$(hab-prompt-utils emit git-head-branch)
}
grbo () {
git rebase ${1:-origin}/$(hab-prompt-utils emit git-head-branch)
}