-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
53 lines (42 loc) · 1.21 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
# -- Exports
export ZSH=$HOME/.oh-my-zsh
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export PROJECTS=$HOME/src
export WAR_MACHINE=$HOME/.war_machine
# - github repo switcher (jdx/gh)
export GH_BASE_DIR=$PROJECTS
# -- Theme
ZSH_THEME="dracula"
# -- Plugins
plugins=(git gh asdf zsh-autosuggestions zsh-syntax-highlighting)
# -- Initialize
source $ZSH/oh-my-zsh.sh
source $WAR_MACHINE/helpers.sh
# -- Aliases
alias gfp='git push -f'
alias gop='git-open'
alias grh='git reset --hard'
alias gdst='git diff --staged'
alias zshload='source ~/.zshrc'
alias zshconfig='vim ~/.zshrc'
alias vimconfig='vim ~/.vimrc'
alias gitconfig='vim ~/.gitconfig'
alias sshconfig='vim ~/.ssh/config'
alias asdfconfig='vim ~/.tool-versions'
alias kubeconfig='vim ~/.kube/config'
alias tmuxconfig='vim ~/.tmux.conf'
alias x='tmux new -s ${PWD##*/}'
alias xa='tmux attach -t ${PWD##*/}'
alias xd='tmux detach -s ${PWD##*/}'
alias xk='tmux kill-session -t ${PWD##*/}'
alias k='kubectl'
alias ka='kubectl apply -f'
alias kg='kubectl get'
alias kd='kubectl describe'
alias kex='kubectl exec -ti'
alias bx='bundle exec'
alias ycminstall='~/.vim/plugged/YouCompleteMe/install.py'
# -- Configuration
eval $(thefuck --alias)
eval $(starship init zsh)