-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
108 lines (90 loc) · 3.64 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
97
98
99
100
101
102
103
104
105
106
107
108
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.sh
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
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export ZSH="$HOME/.oh-my-zsh"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
ZSH_THEME="powerlevel10k/powerlevel10k"
# Aliases
alias aliases="nvim ~/.zshrc"
alias szsh="source ~/.zshrc"
alias vim="nvim"
alias ns="npm start"
alias ys="yarn start"
alias yr="yarn refresh"
alias yt="yarn test"
alias br="bun run dev"
alias bs="bun run start"
alias yeet="rm -rf"
alias la="ls -a"
alias dev="cd ~/Documents/dev"
alias cs1="cd ~/Documents/dev/school/cs415/t13"
alias cs2="cd ~/Documents/dev/school/cs475"
alias python="python3"
alias ibrew="arch -x86_64 /usr/local/bin/brew"
alias mbrew="arch -arm64e /opt/homebrew/bin/brew"
alias lg="lazygit"
alias updatelocaldotfiles="cp ./init.lua ~/.config/nvim/init.lua && cp ./.zshrc ~/.zshrc && cp ./.tmux.conf ~/.tmux.conf && source ~/.zshrc"
alias updateremotedotfiles="cp ~/.config/nvim/init.lua ./init.lua && cp ~/.zshrc ./.zshrc && cp ~/.tmux.conf ./.tmux.conf"
alias tms="tmux source-file ~/.tmux.config"
alias gmain="git checkout main && git pull"
# BEGIN work stuff
alias mvp="cd ~/Documents/dev/mvp"
alias wiki="cd ~/Documents/dev/mvp.wiki && git pull && nvim"
alias localproxy="~/Documents/dev/mvp/scripts/local_switch_proxy.sh"
alias devproxy="~/Documents/dev/mvp/scripts/dev_switch_proxy.sh"
alias stagingproxy="~/Documents/dev/mvp/scripts/staging_switch_proxy.sh"
alias prodproxy="~/Documents/dev/mvp/scripts/prod_read_only_switch_proxy.sh"
alias dangerproxy="~/Documents/dev/mvp/scripts/prod_switch_proxy.sh"
alias mvpc="cd ~/Documents/dev/mvp/client && yarn start"
alias mvps="cd ~/Documents/dev/mvp && yarn server client"
alias mvpops="cd ~/Documents/dev/mvp && yarn server ops"
alias mvpopsc="cd ~/Documents/dev/mvp && yarn ops"
alias mvptest="cd ~/Documents/dev/mvp && yarn test"
alias tf="yarn nx run server:test-feature"
alias tfc="yarn nx run server:test-feature-clean"
alias tfhysa="yarn nx run server:test-feature --findRelatedTests=server/src/__tests__/feature/routers/v1/form8974RouterV1.test.ts"
decrypt() {
TOKEN=$1
if [[ $1 == enc\$* ]]
then
TOKEN=$(echo $1 | cut -c5-)
fi
yarn nx run token-storage:decrypt --proj $2 --data $TOKEN
}
ds() {
decrypt $1 ms-eng-shared-webstack-staging
}
dp() {
decrypt $1 ms-eng-shared-webstack-prod
}
dd() {
decrypt $1 ms-eng-sre-webstack-sandbox
}
# END work stuff
alias t4r="cd ~/Documents/dev/free-4runner-stuff && git checkout main && git pull && go run ."
alias hello="gcc hello.c -o hello && ./hello"
alias hellov="gcc hello.c -o hello && valgrind --leak-check=yes ./hello"
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
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 NVM_DIR="$HOME/.nvm"
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
# bun completions
[ -s "/home/zeepk/.bun/_bun" ] && source "/home/zeepk/.bun/_bun"
# Bun
export BUN_INSTALL="/home/zeepk/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export PATH=$PATH:$HOME/.local/bin
# bun completions
[ -s "/usr/local/share/zsh/site-functions/_bun" ] && source "/usr/local/share/zsh/site-functions/_bun"