-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
41 lines (31 loc) · 1.07 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
export PATH=/opt/homebrew/bin:$PATH
# Tracking dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# python3 as default
alias python=/opt/homebrew/bin/python3
# Use modern completion system
autoload -U +X bashcompinit && bashcompinit
# K8s autocompletion
autoload -Uz compinit
compinit
source <(kubectl completion zsh)
# Global environment variables
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
export EDITOR="nvim"
export THEME="catppuccin"
# Hostname viz
PS1="🔥 %n %~ $ "
# Friendly consise man pages with examples from "cheat" and tldr
cheat () {
curl "cheat.sh/$1"
}
# Fix backwards search
bindkey '^R' history-incremental-search-backward
# Install: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# Must be last line
# Install: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh