-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc.local
88 lines (63 loc) · 2.08 KB
/
.zshrc.local
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
export PATH="$HOME/.bin:$PATH"
export PATH="/opt/local/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
export PATH="./bin:$PATH"
export POSTGRES_USER=setphen
# superfast search, thanks ripgrep!
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --glob "!.git/*" --glob "!node_modules/*"'
# . $HOME/.asdf/asdf.sh
# source /Users/setphen/.ghcup/env
#Open new tabs in current working directory
precmd () {print -Pn "\e]2; %~/ \a"}
preexec () {print -Pn "\e]2; %~/ \a"}
#colors :)
export TERM="xterm-16color"
# no globbing
# unsetopt nomatch
# productivity
alias todo="vim ~/.todo"
# webcam exposure
alias exp="uvcc set auto_exposure_mode 1 && uvcc set absolute_exposure_time 260"
# writing
JOURNAL_PATH="$HOME/Dropbox (Personal)/3 Journal"
journal() {
vim "$JOURNAL_PATH/$1.md"
}
# serving folder
serve() {
if [[ $# -gt 0 ]]; then
(sleep 1 && open http://localhost:$1) & python3 -m http.server $1
else
(sleep 1 && open http://localhost:8181) & python3 -m http.server 8181
fi
}
ech() {
if ( "$1" != "" )
then
echo "$1"
else
echo "DEFAULT"
fi
}
# safety
alias trash="rmtrash"
# get those sweet completions?
autoload -Uz compinit && compinit
# export PATH="$(brew --prefix [email protected])/bin:$PATH"
#Blog deployment
export [email protected]:public_www/blog
#Postgres path stuff
export PATH="/Applications/Postgres.app/Contents/Versions/9.6/bin:$PATH"
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/stephenlindberg/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/stephenlindberg/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/stephenlindberg/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/stephenlindberg/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
# OpenJDK stuff?
export PATH="/usr/local/opt/openjdk/bin:$PATH"
# go stuff
export PATH="/usr/local/go/bin:$PATH"
# make stuff
export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"
#asdf override
# . /usr/local/opt/asdf/libexec/asdf.sh