-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
70 lines (59 loc) · 2.09 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
70
# Aliases
alias dc=docker-compose
alias run-help=man
alias which-command=whence
alias l='ls -l'
alias cdt='cd $(mktemp -d)'
alias python='python3'
alias a='cd ~/Developer/log && vim ~/Developer/log/worklog/01-2025.md'
alias ag='git add worklog && git commit -m "auto entry" && git push'
#alias ssh="kitten ssh"
alias nv="nvim"
alias git='TZ=UTC0 git'
alias n='nix-shell $HOME/shell.nix'
# cd and fetch
function cdf() {
builtin cd "$1" && \
if [ -d .git ]; then
git fetch --all
fi
}
# Variables
export EDITOR=/opt/homebrew/bin/vim
export VISUAL=/opt/homebrew/bin/vim
export GOPATH=/Users/reubenninan/go
export XDG_CONFIG_HOME=/Users/reubenninan/.config
export JAVA_HOME=$(/usr/libexec/java_home -v 18.0)
# PATH
export PATH="/Users/reubenninan/.krew/bin:/Users/reubenninan/.gem/ruby/3.1.3/bin:/Users/reubenninan/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0/bin:/Users/reubenninan/.rubies/ruby-3.1.3/bin:/usr/local/opt/llvm/bin:/Users/reubenninan/go/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin:/Users/reubenninan/.cargo/bin:/Users/reubenninan/bin:/Users/reubenninan/.natster/bin:$PATH"
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
# Cmake
export PATH="/Applications/CMake.app/Contents/bin:$PATH"
# Starship
eval "$(starship init zsh)"
export STARSHIP_SHELL=zsh
# Autocomplete
autoload -Uz compinit && compinit
setopt SHARE_HISTORY
HISTFILE=$HOME/.zhistory
SAVEHIST=1000
HISTSIZE=999
setopt HIST_EXPIRE_DUPS_FIRST
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
ENABLE_CORRECTION="true"
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# Kubectl Autocomplete;
source <(kubectl completion zsh)
# Misc
setopt NO_BEEP
# fuzzy-finder
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
eval "$(atuin init zsh)"
# Synadia specific settings and vars
export AWS_PROFILE=synadia