-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
69 lines (53 loc) · 1.77 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
# 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
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
# Define an array of themes
# 1: WIP; 2: Minimal; 3: Full
themes=("zen.toml" "amro.cmp.json" "catppuccin.omp.json")
# IMPORTANT: ZSH first index is 1 not 0!
default_theme="${themes[1]}"
# Set the path to the selected theme
theme_path="$HOME/.config/ohmyposh/$default_theme"
# Initialize Oh My Posh with the selected theme
eval "$(oh-my-posh init zsh --config $theme_path)"
fi
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
#
export PATH="$PATH:$HOME/.rvm/bin"
# ---- The Fuck ----
# thefuck alias
eval $(thefuck --alias)
# Eza (a better ls)
alias ls="eza --icons=always"
export PATH="$PATH:/Users/tommyludwig/.local/bin" # Added by Docker Labs Debug Tools"
# Export preferred editor
export EDITOR=nvim
source <(fzf --zsh)
alias cat=bat
# ---- GIT ----
alias gs='git status'
alias ga='git add'
alias gp='git push'
alias gpo='git push origin'
alias gtd='git tag --delete'
alias gtdr='git tag --delete origin'
alias gr='git branch -r'
alias gplo='git pull origin'
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias gco='git checkout '
alias gl='git log'
alias gr='git remote'
alias grs='git remote show'
alias glo='git log --pretty="oneline"'
alias glol='git log --graph --oneline --decorate'
# +---------+
# | ALIASES |
# +---------+
alias cloc=scc
alias k=kubectl
#source $HOME/aliases/aliases
neofetch