-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
85 lines (65 loc) · 2.7 KB
/
.zshrc
File metadata and controls
85 lines (65 loc) · 2.7 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Directories
export PATH=$HOME:/opt/homebrew/bin:/opt/homebrew/opt/curl/bin:/usr/local/bin:/usr/local/sbin:$PATH
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
export dev=$HOME/dev
# User configuration
export MANPATH="/usr/local/man:$MANPATH"
export LANG=en_US.UTF-8
export ARCHFLAGS="-arch x86_64"
export CPPFLAGS="-I/opt/homebrew/opt/curl/include"
alias wrangler="npx wrangler"
export PATH=$HOME/.cargo/bin/:$PATH
# SSH
export SSH_AUTH_SOCK=~/.bitwarden-ssh-agent.sock
# Vim
alias vim='nvim'
# git
alias ga='git add'
alias gc='git commit -m'
alias gpl='git pull'
alias gpu='git push'
alias gch='git checkout'
alias gnb='git checkout -b'
alias forgejo='tea'
# Kubernetes
export KUBE_CONFIG=~/.kube/config
alias k='kubectl'
alias ka='kubectl apply -f'
alias kd='kubectl delete -f'
alias kdf='kubectl delete --force -f'
alias kc='kubectl config use-context'
alias t='talosctl'
#################################################
# Antidote Stuff
export ANTIDOTE_PATH=~/.antidote
source $ANTIDOTE_PATH/antidote.zsh
# Set the root name of the plugins files (.txt and .zsh) antidote will use.
zsh_plugins=~/.zsh_plugins
# Ensure the .zsh_plugins.txt file exists so you can add plugins.
[[ -f ${zsh_plugins}.txt ]] || touch ${zsh_plugins}.txt
# Lazy-load antidote from its functions directory.
fpath=(/path/to/antidote/functions $fpath)
autoload -Uz antidote
# Generate a new static file whenever .zsh_plugins.txt is updated.
if [[ ! ${zsh_plugins}.zsh -nt ${zsh_plugins}.txt ]]; then
antidote bundle <${zsh_plugins}.txt >|${zsh_plugins}.zsh
fi
# Source your static plugins file.
source ${zsh_plugins}.zsh
#################################################
# Geometry
export GEOMETRY_TITLE=(geometry_node)
export GEOMETRY_GIT_TIME_DETAILED=true # show full time (e.g. `12h 30m 53s`) instead of the coarsest interval (e.g. `12h`)
#################################################
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /opt/homebrew/bin/terraform terraform
export PATH="/opt/homebrew/sbin:$PATH"
PATH="/Users/jansenfuller/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/Users/jansenfuller/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/Users/jansenfuller/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/Users/jansenfuller/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/jansenfuller/perl5"; export PERL_MM_OPT;