-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
68 lines (57 loc) · 2.14 KB
/
Copy pathzshrc
File metadata and controls
68 lines (57 loc) · 2.14 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
. $HOMEBREW_PREFIX/etc/profile.d/z.sh # https://formulae.brew.sh/formula/z
alias ....='cd ../../..'
alias ...='cd ../..'
alias ..='cd ..'
alias ag='rg'
alias be='bundle exec'
alias brewup='brew update; brew upgrade; brew cleanup; brew doctor'
alias cat='bat'
alias cdx='codex'
alias g='git'
alias gti='git'
alias init='nvim ~/.config/nvim/init.lua'
alias ipad='displayplacer "id:C451E971-242D-46BF-AA77-97B0303C4A23+37D8832A-2D66-02CA-B9F7-8F30A301B230 res:1080x810 hz:60 color_depth:4 enabled:true scaling:on origin:(0,0) degree:0"'
alias ivm='vim'
alias ls='ls -lahGp' # one entry/line, all files, color allowed, directory indicator
alias npmr='npm run'
alias npr='npm run'
alias nv='nvim'
alias rails='bundle exec rails'
alias rk='bin/rake'
alias vi='vim'
alias vim='vim'
alias vrc='vim ~/.vimrc'
alias wtc='wt switch --create'
alias wtd='wt switch develop'
alias wts='wt switch'
alias wtsd='wt switch develop'
alias zrc='vim ~/.zshrc'
export BAT_THEME="base16"
autoload -Uz compinit && compinit # Load completions
_comp_options+=(globdots) # include dot files for completions
eval "$(direnv hook zsh)"
eval "$(hub alias -s)"
eval "$(thefuck --alias)"
for file in $DOTS_PATH/zsh/**/*.zsh; do
[ -r "$file" ] && source "$file"
done
# Plugins (via https://github.com/mattmc3/zsh_unplugged)
zsh_plugin_repos=(
jeffreytse/zsh-vi-mode
zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
)
plugin-load $zsh_plugin_repos # See $DOTS_PATH/zsh/plugin-load.zsh
bindkey '^ ' autosuggest-accept # control + space to accept suggestions
export PATH="/opt/homebrew/bin:$PATH"
eval "$(mise activate zsh)"
# heroku autocomplete setup
HEROKU_AC_ZSH_SETUP_PATH=/Users/drewprice/Library/Caches/heroku/autocomplete/zsh_setup && test -f $HEROKU_AC_ZSH_SETUP_PATH && source $HEROKU_AC_ZSH_SETUP_PATH;
[ -f "$HOME/.local/bin/env" ] && . "$HOME/.local/bin/env"
if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)"; fi
# The following lines have been added by Docker Desktop to enable Docker CLI completions.
fpath=(/Users/drewprice/.docker/completions $fpath)
autoload -Uz compinit
compinit
# End of Docker CLI completions