-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh_aliases
39 lines (34 loc) · 1.3 KB
/
.zsh_aliases
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
# set dotfiles as alias to manage bare repo at $HOME/.dotfiles
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# set aliases to make managing dotfiles easier
alias dau='dotfiles add -u'
alias da='dotfiles add'
alias dcb='dotfiles checkout -b'
alias dcm='dotfiles commit -m'
alias dco='dotfiles checkout'
alias ddf='dotfiles diff'
alias dp='dotfiles push'
alias ds='dotfiles status'
alias dss='dotfiles status -s'
alias dl='dotfiles pull'
alias dlo='dotfiles log --oneline'
alias dlog='dotfiles log --oneline --decorate --graph'
alias drh='dotfiles reset'
alias drhh='dotfiles reset --hard'
alias dsta='dotfiles stash'
alias dstp='dotfiles stash pop'
# more git aliases specific to the DGS1 SDT
alias gbda='git branch --no-color --merged | command grep -vE "^(\+|\*|\s*(master|develop|dev|acceptance)\s*$)" | command xargs -n 1 git branch -d'
alias gcbp='git checkout -b && git push --set-upstream origin $(git_current_branch)'
alias gca='git checkout acceptance'
# aliases to make zsh management easier
alias zcfg='$EDITOR $HOME/.zshrc'
alias zali='$EDITOR $HOME/.zsh_aliases'
alias zexp='$EDITOR $HOME/.zsh_exports'
alias zfun='$EDITOR $HOME/.zsh_functions'
alias reload='source $HOME/.zshrc'
# git alias for git-together
alias git=git-together
# alias vi / vim to use neovim
alias vi=nvim
alias vim=nvim