-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
45 lines (35 loc) · 1020 Bytes
/
.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
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME='robbyrussell'
DISABLE_UPDATE_PROMPT='true'
ALIASES_FILE=~/.aliases
if [ -f $ALIASES_FILE ]; then
echo "$ALIASES_FILE will be loaded."
source $ALIASES_FILE
fi
alias g='git'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias gst='git status'
alias gc='git commit'
alias gp='git push'
alias gn='git checkout -b'
alias gco='git checkout'
alias gpm='git pull origin master'
alias d='docker'
alias dc='docker compose'
alias dcl='docker rm -f $(docker ps -a -q) '
alias dci='docker rmi $(docker images -a -q)'
alias k='kubectl'
dotreload() {
if [ ! "$DOTFILES_ROOT" ]; then
echo 'Dotfiles folder not found.'
return 0
fi
echo 'reloading configuration..'
cp $DOTFILES_ROOT/.zshrc ~/.zshrc
source ~/.zshrc
echo 'done.'
}
alias rld='dotreload'
export UPDATE_ZSH_DAYS=10
source $ZSH/oh-my-zsh.sh