-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
43 lines (36 loc) · 1.12 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
# Antibody
if [ -f "$HOME/.zsh_plugins.sh" ]; then
source ~/.zsh_plugins.sh
else
echo "Installing antibody plugins..."
antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
source $HOME/.zsh_plugins.sh
fi
# Autocomplete
autoload -Uz compinit && compinit
# ENV
export EDITOR=nvim
export PATH="$HOME/bin:$PATH"
# Aliases
alias vi="vim"
alias vim="nvim"
alias chz="chezmoi"
alias tstart="tmuxinator start"
alias tstop="tmuxinator stop"
alias console="heroku run \"rails console -- --noautocomplete\""
alias b="bundle exec"
alias open="xdg-open"
alias fly="flyctl"
alias hp="echo 'Setting Heroku account to [personal]'; heroku accounts:set personal"
alias hb="echo 'Setting Heroku account to [bonsai]'; heroku accounts:set bonsai"
# Git aliases
alias gst="git status"
alias gco="git checkout"
alias gp="git push"
alias rebase="git checkout master; git pull --rebase; git checkout -; git rebase master"
# Initialize prompt
[[ -x "$(which starship)" ]] && eval "$(starship init zsh)"
# Initialize asdf
[[ -r "/opt/asdf-vm/asdf.sh" ]] && source /opt/asdf-vm/asdf.sh
# Initialize z
[[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh