-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
75 lines (57 loc) · 1.72 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
71
72
73
74
75
system_type=$(uname -s)
zmodload zsh/zprof
if [ "$SHLVL" = 1 ]; then
export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH
fi
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="kennethreitz"
DISABLE_UNTRACKED_FILES_DIRTY="true"
zstyle ':omz:plugins:nvm' lazy yes
plugins=(
git
nvm
)
source $ZSH/oh-my-zsh.sh
# FZF
if [ "${system_type}" = "Linux" ]; then
. /usr/share/fzf/key-bindings.zsh
. /usr/share/fzf/completion.zsh
elif [ "${system_type}" = "Darwin" ]; then
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
fi
export LANG=en_AU.UTF-8
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
alias vim=nvim
alias v=nvim
alias vdev="cd ~/.config/nvim && v"
alias zdev="cd && v ~/.zshrc"
alias ls=eza
function awsauth { ~/Library/aws-auth-bash/auth.sh "$@"; [[ -r "$HOME/.aws/sessiontoken" ]] && . "$HOME/.aws/sessiontoken"; }
if [ "$SHLVL" = 1 ]; then
export PATH="$HOME/.poetry/bin:$PATH"
fi
export PYTHONBREAKPOINT=pudb.set_trace
export PYTHONDONTWRITEBYTECODE=1
if [ "$SHLVL" = 1 ]; then
export PATH="$PATH:/Users/amckelvie/Library/miniconda/bin"
fi
export SHELL=/bin/zsh
[ -f "$HOME/.local/share/ghcup/env" ] && source "$HOME/.local/share/ghcup/env"
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
if [ "${system_type}" = "Linux" ]; then
export LD_LIBRARY_PATH=$HOME/.local/lib/arch-mojo:$LD_LIBRARY_PATH
elif [ "${system_type}" = "Darwin" ]; then
export MODULAR_HOME="~/.modular"
export PATH="~/.modular/pkg/packages.modular.com_mojo/bin:$PATH"
fi
autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit
if [ "${system_type}" = "Darwin" ]; then
complete -C aws_completer aws
fi