-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
62 lines (51 loc) · 1.47 KB
/
dot_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
# Oh-my-zsh setup
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME=simple #gnzh #kphoen
zstyle ':omz:update' mode disabled # disable automatic updates
plugins=(
aws
brew
direnv
fzf
git
kubectl
terraform
timer
tmux
z
zsh-autosuggestions
zsh-syntax-highlighting) # zsh-syntax-highlighting must be at end
source $ZSH/oh-my-zsh.sh
# AWS setup
export AWS_PAGER=""
# Atuin setup
eval "$(atuin init zsh --disable-up-arrow)"
# Brew setup
eval "$(/opt/homebrew/bin/brew shellenv)"
# direnv setup
alias di='echo dotenv > .envrc && touch .env && direnv allow'
# Git setup
alias gl='git log'
alias gf='git fetch --all --prune'
alias grom='git rebase $(git symbolic-ref --short refs/remotes/origin/HEAD)'
alias gprune='master=$(basename $(git symbolic-ref --short refs/remotes/origin/HEAD)); git branch --merged $master | grep -v "${master}$" | xargs git branch -d'
alias gsgr='git stash && git fetch && git rebase $(git symbolic-ref --short refs/remotes/origin/HEAD) && git stash pop'
alias gcan='git commit -a --amend --no-edit'
alias gd='git diff'
alias gc='git commit'
alias gs='git status'
export GIT_PAGER='less -FX'
# Go setup
export PATH="$(go env GOPATH)/bin:$PATH"
# K8S setup
export KUBE_EDITOR='code -w'
# rg setup
alias rg="rg --hidden --glob '!.git'"
# Volta setup
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# Rust setup
export PATH="$HOME/.cargo/bin:$PATH"
# mise setup
eval "$(mise activate zsh)"