-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
55 lines (43 loc) · 1.21 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
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/opt/homebrew/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
)
# Fix oh-my-zsh warning at shell start-up
# "Insecure completion-dependent directories detected"
ZSH_DISABLE_COMPFIX="true"
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
if [ -d "$HOME/.asdf" ]; then
export PATH="$HOME/.asdf/shims:$PATH"
. $(brew --prefix asdf)/libexec/asdf.sh
fi
if command -v vim >/dev/null 2>&1; then
export EDITOR=$(which vim)
# vim keybindings
bindkey -v
fi
# shell functions
gpo() { git push origin $(git branch --show-current) }
# git aliases
alias gst="git status"
alias ga="git add"
alias gc="git commit"
alias glp="git log --pretty=oneline"
alias gd="git diff"
# gcloud aliases
alias gce="gcloud composer environments"
alias gbce="gcloud beta composer environments"
alias gs="gsutil"
# other
alias cz="chezmoi"
alias tf="terraform"
alias dc="docker-compose"