-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
114 lines (83 loc) · 3.26 KB
/
zshrc
File metadata and controls
114 lines (83 loc) · 3.26 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# extra files in ~/.zsh/configs/pre , ~/.zsh/configs , and ~/.zsh/configs/post
# these are loaded first, second, and third, respectively.
_load_settings() {
_dir="$1"
if [ -d "$_dir" ]; then
if [ -d "$_dir/pre" ]; then
for config in "$_dir"/pre/**/*~*.zwc(N-.); do
. $config
done
fi
for config in "$_dir"/**/*(N-.); do
case "$config" in
"$_dir"/(pre|post)/*|*.zwc)
:
;;
*)
. $config
;;
esac
done
if [ -d "$_dir/post" ]; then
for config in "$_dir"/post/**/*~*.zwc(N-.); do
. $config
done
fi
fi
}
_load_settings "$HOME/.zsh/configs"
for function in ~/.zsh/functions/*; do
source $function
done
# aliases
[[ -f ~/.aliases ]] && source ~/.aliases
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix'
# To apply the command to CTRL-T as well
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Edit the current command with Esc v
autoload -U edit-command-line
zle -N edit-command-line
bindkey '\C-x\C-e' edit-command-line
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
# Added primarily for fastlane (https://fastlane.tools/)
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Include binaries installed via e.g. `pip install --user package-name`
export PATH=$PATH:$HOME/.local/bin
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Load the zmv command
autoload -U zmv
export PYTHONBREAKPOINT="ipdb.set_trace"
[[ -f ~/.nix-profile/etc/profile.d/nix.sh ]] && source ~/.nix-profile/etc/profile.d/nix.sh
export PATH=$PATH:/Library/TeX/texbin
[[ -f "$HOME/.asdf/asdf.sh" ]] && . "$HOME/.asdf/asdf.sh"
if type "spin" > /dev/null; then
zstyle ':completion:*' use-cache on
autoload -Uz compinit && compinit
source <(spin completion)
fi
# Include hyperlocal machine-specific configuration
[[ -f ~/.zshrc.local.machine ]] && source ~/.zshrc.local.machine
if [ -d /opt/dev ]; then
[[ -f /opt/dev/sh/chruby/chruby.sh ]] && {
type chruby >/dev/null 2>&1 || chruby () {
source /opt/dev/sh/chruby/chruby.sh; chruby "$@";
}
}
[ -f /opt/dev/dev.sh ] && source /opt/dev/dev.sh
alias pulls='/Users/styrmis/src/github.com/Shopify/pulls/pulls'
# cloudplatform: add Shopify clusters to your local kubernetes config
export KUBECONFIG=${KUBECONFIG:+$KUBECONFIG:}/Users/styrmis/.kube/config:/Users/styrmis/.kube/config.shopify.cloudplatform
for file in /Users/styrmis/src/github.com/Shopify/cloudplatform/workflow-utils/*.bash; do source ${file}; done
fi
[[ -f /opt/dev/sh/chruby/chruby.sh ]] && { type chruby >/dev/null 2>&1 || chruby () { source /opt/dev/sh/chruby/chruby.sh; chruby "$@"; } }
[[ -f ~/.config/op/plugins.sh ]] && source ~/.config/op/plugins.sh
export ZK_NOTEBOOK_DIR="/Users/styrmis/Documents/Notes"
export MAX_MCP_OUTPUT_TOKENS=35000
export PATH="$PATH:/Users/styrmis/src/tries/2026-01-30-buildkite-smart-retries/bin"
[[ -x /opt/homebrew/bin/brew ]] && eval $(/opt/homebrew/bin/brew shellenv)
# Added by tec agent
[[ -x /Users/styrmis/.local/state/tec/profiles/base/current/global/init ]] && eval "$(/Users/styrmis/.local/state/tec/profiles/base/current/global/init zsh)"
export PATH="/Users/styrmis/.local/bin:$PATH"