-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
547 lines (433 loc) · 18 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
# if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
# fi
# Not sure I want to do this...
export XDG_CONFIG_HOME="$HOME/.config"
# TODO: This doesn't work
# export NAVI_CONFIG=$XDG_CONFIG_HOME/navi/config.yaml
# Pull local files first (more relevant, usually) then the generic shared cheats
#
# List the cheats in order of usage; they appear in the list at the bottom
# of the terminal in the order they're presented in the cheat file.
#
# tldr; favorites near the top of the file
export NAVI_PATH="$HOME/.local_navi_cheatsheets:$HOME/.navi_cheatsheets"
# source $HOME/.antigen/antigen.zsh
# antigen init $HOME/.antigenrc
# Uncomment this, and the last line in this file for profiling information
# zmodload zsh/zprof
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOMEBREW_PREFIX/bin:$PATH
# For GPG signing
# https://github.com/keybase/keybase-issues/issues/2798
export GPG_TTY=$(tty)
# Path to your oh-my-zsh installation.
# export ZSH=$HOME/.oh-my-zsh
# This appears to be set in at least the M1 version of brew
if [[ -z "${HOMEBREW_PREFIX}" ]]; then
# export HOMEBREW_PREFIX=$(brew --prefix)
export HOMEBREW_PREFIX="/opt/homebrew"
fi
export PATH="$HOMEBREW_PREFIX/bin/brew:$PATH"
# This is the term setting I used before
# export TERM="screen-256color"
# This term setting is used to get italics working, along with this gist: https://gist.github.com/sos4nt/3187620
export TERM="xterm-256color-italic"
export ZSH_THEME="powerlevel10k/powerlevel10k"
# https://github.com/ansible/ansible/issues/32499#issuecomment-341578864
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY="YES"
# https://github.com/rails/rails/issues/38560
# export PGGSSENCMODE="disable"
# Location of my dotfiles repo, for symlinking. Override this in .localrc if
# needed. I might be able to remove this completely, now that I'm using stow
export DOTFILES_PATH="$HOME"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# https://stackoverflow.com/a/41620534/2892779
DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# oh-my-zsh plugins
# plugins=(
# bundler
# colored-man-pages
# git
# macos
# rake-fast
# zsh-syntax-highlighting
# zsh-autosuggestions
# zsh-interactive-cd
# zoxide
# )
# Always automatically update oh-my-zsh
# DISABLE_UPDATE_PROMPT="true"
# Automatically load additional completion scripts.
# https://github.com/zsh-users/zsh-completions/blob/master/README.md
autoload -U compinit && compinit
# Disable magic functions (can cause slow pasting)
# https://github.com/ohmyzsh/ohmyzsh/issues/5569#issuecomment-491504337
DISABLE_MAGIC_FUNCTIONS=true
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# https://statico.github.io/vim3.html
if [ -e $HOMEBREW_PREFIX/opt/fzf/shell/completion.zsh ]; then
source $HOMEBREW_PREFIX/opt/fzf/shell/key-bindings.zsh
source $HOMEBREW_PREFIX/opt/fzf/shell/completion.zsh
fi
# https://github.com/junegunn/fzf#settings
_fzf_compgen_path() { fd --hidden --follow --exclude ".git" . "$1" }
# Use fd to generate the list for directory completion
_fzf_compgen_dir() { fd --type d --hidden --follow --exclude ".git" . "$1" }
# Used with active-record-query-trace gem &
# ActiveRecord::Type::Boolean.new.cast(ENV.fetch("AR_TRACE", false)) to conditionally enable
# query tracing in console
export AR_TRACE=false
# Used with the devtrace gem provided by Scout
export SCOUT_DEV_TRACE=false
export ARCHFLAGS="-arch arm64"
export CFLAGS="-I$HOMEBREW_PREFIX/opt/libpq/include -I$HOMEBREW_PREFIX/opt/llvm/include -I$HOMEBREW_PREFIX/opt/[email protected]/include -I$HOMEBREW_PREFIX/opt/readline/include -I$HOMEBREW_PREFIX/opt/jemalloc/include -I$HOMEBREW_PREFIX/opt/gmp/include -O2 -g"
export LDFLAGS="-L$HOMEBREW_PREFIX/opt/libpq/lib -L$HOMEBREW_PREFIX/opt/llvm/lib/c++ -L$HOMEBREW_PREFIX/opt/[email protected]/lib -L$HOMEBREW_PREFIX/opt/readline/lib -L$HOMEBREW_PREFIX/opt/jemalloc/lib -L$HOMEBREW_PREFIX/opt/gmp/lib -L$HOMEBREW_PREFIX/opt/libxml2/lib -L$HOMEBREW_PREFIX/opt/zstd/lib -L$HOMEBREW_PREFIX/opt/zlib/lib"
export CPPFLAGS="-I$HOMEBREW_PREFIX/opt/libpq/include -I$HOMEBREW_PREFIX/opt/llvm/include -I$HOMEBREW_PREFIX/opt/[email protected]/include -I$HOMEBREW_PREFIX/opt/readline/include -I$HOMEBREW_PREFIX/opt/jemalloc/include -I$HOMEBREW_PREFIX/opt/gmp/include -I$HOMEBREW_PREFIX/opt/libxml2/include -I$HOMEBREW_PREFIX/opt/zlib/include"
export PKG_CONFIG_PATH="$HOMEBREW_PREFIX/opt/libpq/lib/pkgconfig:$HOMEBREW_PREFIX/opt/[email protected]/lib/pkgconfig:$HOMEBREW_PREFIX/opt/readline/lib/pkgconfig:$HOMEBREW_PREFIX/opt/jemalloc/lib/pkgconfig:$HOMEBREW_PREFIX/opt/gmp/lib/pkgconfig:$HOMEBREW_PREFIX/opt/libxml2/lib/pkgconfig:$HOMEBREW_PREFIX/opt/zlib/lib/pkgconfig"
export EDITOR="nvim"
export ERL_AFLAGS="-kernel shell_history enabled"
# Also defines the default command run when :Files is called in vim
export FZF_DEFAULT_COMMAND="rg \
--files \
--line-number \
--no-heading \
--smart-case \
--no-ignore-vcs \
--hidden \
-g \"!**/bower_modules/*\" \
-g \"!**/dist/*\" \
-g \"!**/node_modules/*\" \
-g \"!**/tmp/**/*\" \
-g \"!*.dwarf\" \
-g \"!*.git\" \
-g \"!*.jay\" \
-g \"!*.log\" \
-g \"!*.map\" \
-g \"!*.tmp\" \
-g \"!.cache\" \
-g \"!.elixir_ls\" \
-g \"!.git/**/*\" \
-g \"!.gnupg\" \
-g \"!.node-gyp\" \
-g \"!.npm\" \
-g \"!.tmp\" \
-g \"!.yardopts\" \
-g \"!Library\" \
-g \"!_build/**/*\" \
-g \"!config/yarn\" \
-g \"!coverage\" \
-g \"!data/**/*\" \
-g \"!db/backups\" \
-g \"!deps/**/*\" \
-g \"!doc\" \
-g \"!frontend/node_modules\" \
-g \"!frontends\" \
-g \"!node_modules\" \
-g \"!package-lock.json\" \
-g \"!storage\" \
-g \"!swagger\" \
-g \"!tags\" \
-g \"!yarn.lock\" \
"
export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS='--color fg:-1,bg:-1,hl:230,fg+:3,bg+:233,hl+:229 --color info:150,prompt:110,spinner:150,pointer:167,marker:174'
# Ignore certain commands from zsh history via regex
export HISTORY_IGNORE="(cd|ls|clear|tmux|ttmux|vi|exit|z *"
export HISTORY_IGNORE="$HISTORY_IGNORE|git a|git s|cd ..|git co *|git pull|g pull|brew update|brew upgrade|vi|vim|nvim|OA|pwd"
export HISTORY_IGNORE="$HISTORY_IGNORE|code|gcm|g a|g s|g commit|g diff|be rails s|be rails c|irb|pry|g a|g b|g pull|gpsup"
export HISTORY_IGNORE="$HISTORY_IGNORE|which *)"
# Custom history check to see if I have my history ignore configured correctly
function hc() {
local cmd="$@";
if [[ "$cmd" == ${~HISTORY_IGNORE} ]];then ✔ 11:00:11
echo "ignored $cmd";
else;
echo "not ignored $cmd";
fi;
}
export KERL_BUILD_DOCS=yes
export KERL_CONFIGURE_OPTIONS="--disable-debug \
--disable-silent-rules \
--enable-shared-zlib \
--enable-dynamic-ssl-lib \
--enable-hipe \
--enable-smp-support \
--enable-threads \
--enable-kernel-poll \
--enable-wx \
--enable-darwin-64bit \
--with-ssl=$HOMEBREW_PREFIX/opt/[email protected] \
--with-dynamic-trace=dtrace"
export PATH=$PATH:"$HOMEBREW_PREFIX/bin"
export PATH=$PATH:"$ZSH_CUSTOM/plugins/navi"
export PAGER="less"
export PATH=$PATH:$HOMEBREW_PREFIX/opt/postgresql/bin
# This is necessary for, at least, crystal
# https://github.com/brianmario/mysql2/issues/795#issuecomment-337006164
export LIBRARY_PATH=$LIBRARY_PATH:$HOMEBREW_PREFIX/opt/[email protected]/lib/
# For Rust
export CARGO_HOME="$HOME/.cargo"
export PATH="$PATH:$CARGO_HOME/bin"
# Always show full history
export PROMPT_COMMAND='history -a'
# Allow vi-mode in zsh
#
# https://dougblack.io/words/zsh-vi-mode.html
bindkey -v
# Reduce the delay after pressing <ESC> key
export KEYTIMEOUT=0.4
# Make home/end work right inside of tmux. These still don't work quite right
# outside of tmux but I'll deal with that issue separately
#
# https://zserge.com/blog/terminal.html
bindkey '\e[3~' delete-char
bindkey '^A' beginning-of-line
bindkey '^E' end-of-line
# bindkey '^R' history-incremental-pattern-search-backward
# https://github.com/junegunn/fzf/issues/1304#issuecomment-394171410
bindkey "^I" fzf-completion
# bindkey "^R" fzf-history-widget
bindkey "^T" fzf-file-widget
bindkey "^[c" fzf-cd-widget
# export POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
# https://github.com/sharpstone/rack-timeout/blob/master/doc/settings.md#term-on-timeout
export RACK_TIMEOUT_TERM_ON_TIMEOUT=1
export RANGER_LOAD_DEFAULT_RC=FALSE
# export REDIS_URL="redis://localhost:6379"
# Ignore deprecation warnings. Disabled this for now; this causes rubocop to fail silently
# export RUBYOPT="-W0"
# export RUBYOPT="--enable-yjit"
export RUBY_CONFIGURE_OPTS="--enable-yjit --with-openssl --with-readline --with-jemalloc --with-gmp-dir=$HOMEBREW_PREFIX/opt/gmp"
# Enable ruby yjit locally
export RUBY_YJIT_ENABLE=1
export SPEC_OPTS="--color --profile"
# Speed up local testing, for apps that have the ENV set as a flag
export DISABLE_SIMPLECOV=1
# testprof
# export TEST_STACK_PROF=1
# export TEST_RUBY_PROF=1
# export FDOC=1
# export FPROF=1
# export RD_PROF=1
alias be='bundle exec'
alias cat='bat'
alias gua='find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin main \;'
# Exercism setup
alias guardme="guard -c --guardfile ~/exercism/ruby/Guardfile"
alias gwip="LEFTHOOK=0 g commit -m 'WIP'"
alias ls='eza'
alias ping='prettyping --nolegend'
alias top='sudo htop'
alias vi='nvim'
alias vim='nvim'
alias wc='cw'
# alias zf='z -I'
alias ..='cd ..'
alias ...='cd ../..'
# alias -='cd -'
if [ -f ~/.localrc ]; then
source ~/.localrc
fi
setopt AUTO_CD
# Extended format with dates
setopt EXTENDED_HISTORY
# Do not share history between terminal tabs/sessions
setopt SHARE_HISTORY
# Remove command line from history list when first character on the line is a space
setopt HIST_IGNORE_SPACE
# Remove extra blanks from each command line being added to history
setopt hist_reduce_blanks
# When trimming history, lose oldest duplicates first
setopt HIST_EXPIRE_DUPS_FIRST
# Not sure how this is different from the others
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
# Older commands that duplicate newer ones are omitted
setopt HIST_SAVE_NO_DUPS
# Allow multiple terminal sessions to all append to one zsh command history
# setopt APPEND_HISTORY
# Write to the history file immediately
setopt INC_APPEND_HISTORY
# Don't find duplicates in history
setopt HIST_FIND_NO_DUPS
# Run commands with unexpanded globs
unsetopt nomatch
# pip3 install --upgrade --user pip setuptools neovim wheel neovim yamllint pynvim
# pip install --upgrade --user pip setuptools neovim wheel neovim yamllint pynvim
# heroku autocomplete setup
export HEROKU_AC_ZSH_SETUP_PATH=~/Library/Caches/heroku/autocomplete/zsh_setup
# source $HEROKU_AC_ZSH_SETUP_PATH
# Start navi with CTRL-G from a terminal
# https://github.com/denisidoro/navi#shell-widget
source <(navi widget zsh)
# This speeds up pasting w/ autosuggest
# https://github.com/zsh-users/zsh-autosuggestions/issues/238
pasteinit() {
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
}
pastefinish() {
zle -N self-insert $OLD_SELF_INSERT
}
zstyle :bracketed-paste-magic paste-init pasteinit
zstyle :bracketed-paste-magic paste-finish pastefinish
# zprof
# test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
# [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Computer specific scripts; unique to each computer I use
export PATH=~/localbin:$PATH
# Most of the homebrew executables end up here
export PATH=$HOMEBREW_PREFIX/bin:$PATH
# Use newer brew tools (curl, grep)
export PATH="$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/curl/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/[email protected]/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/readline/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/jemalloc/bin:$PATH"
# asdf puts python scripts here
export PATH="$HOME/.local/bin:$PATH"
# Shared personal scripts; these are typically commited to the repo
export PATH=~/bin:$PATH
# export PATH=$HOME/.asdf/shims:$PATH
# export PATH=$HOME/.asdf/bin:$PATH
#
#
# Remove old remote & pruned local branches from the repo
#
#
#https://blog.takanabe.tokyo/en/2020/04/remove-squash-merged-local-git-branches/
# gcl: git-cleanup-remote-and-local-branches
#
# Cleaning up remote and local branch is delivered as follows:
# 1. Prune remote branches when they are deleted or merged
# 2. Remove local branches when their remote branches are removed
# 3. Remove local branches when a main included squash and merge commits
function git_prune_remote() {
echo "Start removing out-dated remote merged branches"
git fetch --prune
echo "Finish removing out-dated remote merged branches"
}
function git_remove_merged_local_branch() {
echo "Start removing out-dated local merged branches"
git branch --merged | egrep -v "(^\*|$git_main_branch|main|master|ANY_BRANCH_YOU_WANT_TO_EXCLUDE)" | xargs -I % git branch -d %
echo "Finish removing out-dated local merged branches"
}
# When we use `Squash and merge` on GitHub,
# `git branch --merged` cannot detect the squash-merged branches.
# As a result, git_remove_merged_local_branch() cannot clean up
# unused local branches. This function detects and removes local branches
# when remote branches are squash-merged.
#
# There is an edge case. If you add suggested commits on GitHub,
# the contents in local and remote are different. As a result,
# This clean up function cannot remove local squash-merged branch.
function git_remove_squash_merged_local_branch() {
echo "Start removing out-dated local squash-merged branches from $(git_main_branch)"
git checkout -q $git_main_branch &&
git for-each-ref refs/heads/ "--format=%(refname:short)" |
while read branch; do
ancestor=$(git merge-base $(git_main_branch) $branch) &&
[[ $(git cherry $(git_main_branch) $(git commit-tree $(git rev-parse $branch^{tree}) -p $ancestor -m _)) == "-"* ]] &&
git branch -D $branch
done
echo "Finish removing out-dated local squash-merged branches"
}
# Clean up remote and local branches
function gitclean() {
git_prune_remote
git_remove_merged_local_branch
git_remove_squash_merged_local_branch
}
export GIT_PAGER="delta"
bindkey '^q' push-line
export PATH="$PATH:$HOME/go/bin"
# if [ -e /Users/jaydorsey/.nix-profile/etc/profile.d/nix.sh ]; then . /Users/jaydorsey/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
eval "$(atuin init zsh)"
eval "$(zoxide init zsh)"
eval "$(~/.cargo/bin/mise activate zsh)"
eval "$(direnv hook zsh)"
# Podman, use apple hypervisor
export CONTAINERS_MACHINE_PROVIDER=applehv
# For crystal
# https://embeddedartistry.com/blog/2017/02/24/installing-llvm-clang-on-osx/
export PATH="$HOMEBREW_PREFIX/opt/gcc/bin:$PATH"
# export PATH="$HOMEBREW_PREFIX/opt/llvm/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/libxml2/bin:$PATH"
# source $HOME/.config/broot/launcher/bash/br
export PATH="$HOMEBREW_PREFIX/opt/libpq/bin:$PATH"
export PATH="$PATH:$HOME/.rd/bin" # rancher desktop
export PATH="$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$PATH"
# Upgrade wezterm nightly when installed via homebrew
alias wezup="brew upgrade --cask wezterm-nightly --no-quarantine --greedy-latest"
# Spring-aware alias for running specs
re() {
if [ -f ./bin/spring ] ; then
bin/spring rspec "$@"
else
bundle exec rspec "$@"
fi
}
# Spring aware focused spec runner
focus() {
if [ -f ./bin/spring ] ; then
bin/spring rspec --tag @focus --order defined
else
bundle exec rspec --tag @focus --order defined
fi
}
# Run focus inside of a a docker image
dfocus() {
dre --tag @focus --order defined
}
alias tree=tre
tre() { command tre "$@" -e && source "/tmp/tre_aliases_$USER" 2>/dev/null; }
# Run focused specs
eval "$(starship init zsh)"
# This one is done differently
fpath+=~/.zsh/zsh-completions/src
source ~/.zsh/navi/shell/navi.plugin.zsh
source ~/.zsh/atuin/atuin.plugin.zsh
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
# Goes last-ish
source ~/.zsh/zsh-syntax-highlighting
function git_current_branch() {
git rev-parse --abbrev-ref HEAD
}
alias gpsup='git push --set-upstream origin $(git_current_branch)'
alias grd='git rebase develop'
[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && source "$HOME/.scm_breeze/scm_breeze.sh"
# Goes very last to override some scm aliases
source ~/.zsh/git/git.plugin.zsh
export PATH="/opt/homebrew/opt/curl/bin:$PATH"