-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
66 lines (47 loc) · 1.56 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
# zsh-syntax-highlighting: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# zsh-autosuggestions: https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
eval "$(oh-my-posh init zsh --config $(brew --prefix oh-my-posh)/themes/capr4n.omp.json)"
export POSH_CACHE_PATH="$HOME/.cache/oh-my-posh"
eval $(thefuck --alias)
## CLI Navigation
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
## K8s Aliases
# Flux Gravelmania
alias flux-rec-all='flux reconcile source git flux-system && flux reconcile kustomization flux-system && flux reconcile kustomization apps-gravelmania'
# General K8s Aliases
alias kctl='kubectl'
alias kuc='kubectl config use-context'
alias kgc='kubectl config get-contexts'
## Git Aliases
alias g='git'
# Essential Git Aliases
alias ga='git add'
alias gc='git commit -m'
alias gco='git checkout'
alias gst='git status -sb'
alias gl='git pull'
alias gp='git push'
alias gd='git diff'
alias gpl='git pull'
alias gcm='git commit -m' # commit with message
alias gcam='git commit -am' # commit all with message
alias gb='git branch'
alias gcl='git clone'
# Log-related Git Aliases
alias glog='git log --oneline --graph --decorate'
# Short Git Status
alias gs='git status -s'
# Functions
gca() {
git commit --amend -m "$1"
}
export GPG_TTY=$(tty)
gpgconf --launch gpg-agent
export TERM=xterm
neofetch