-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
65 lines (50 loc) · 1.83 KB
/
dot_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
# Aliases
alias ls="ls -GlAhF"
alias cps="jq '.scripts' package.json" # list scripts from package.json
alias m="smerge"
alias mm="smerge ."
alias c="code"
alias cc="code ."
alias mp="multipass"
alias k="kubectl"
# Personal settings
source "$HOME/.personal"
# Misc
setopt HIST_IGNORE_DUPS
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=10000
export SAVEHIST=$HISTSIZE
export EDITOR="micro"
# volta
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# yarn
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# sublime text / merge
export PATH="/Applications/Sublime Merge.app/Contents/SharedSupport/bin/:$PATH"
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"
# google cloud SDK path
# if [ -f "$HOME/.google-cloud-sdk/google-cloud-sdk/path.zsh.inc" ]; then . "$HOME/.google-cloud-sdk/google-cloud-sdk/path.zsh.inc"; fi
# google cloud SDK completions
# if [ -f "$HOME/.google-cloud-sdk/google-cloud-sdk/completion.zsh.inc" ]; then . "$HOME/.google-cloud-sdk/google-cloud-sdk/completion.zsh.inc"; fi
# Poetry completions live here
fpath+=~/.zfunc
# Refer to https://carlosbecker.com/posts/speeding-up-zsh/
autoload -Uz compinit
if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' $HOME/.zcompdump) ]; then
compinit -d "$HOME/.zcompdump"
else
compinit -d "$HOME/.zcompdump" -C
fi
# External dependencies
# https://github.com/zsh-users/zsh-autosuggestions
# export ZSH_AUTOSUGGEST_USE_ASYNC=true # disabled, as this is the default after v5.0.8
source "$HOMEBREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
# rust
source "$HOME/.cargo/env"
# For pipx
export PATH="$PATH:$HOME/.local/bin"
# Prompt
export STARSHIP_CONFIG="$HOME/starship.toml"
eval "$(starship init zsh)"
# TODO: check in and see if this issue has been fixed https://github.com/starship/starship/issues/560