-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc.aliases
60 lines (45 loc) · 1.39 KB
/
dot_zshrc.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# CUSTOM aliases
# neovim > vim
alias vim='nvim'
alias vi='nvim'
alias vimo='vim -O'
alias vimp='vim -p'
alias vimr='vim -R'
alias vimd='vim -d'
alias vimor='vim -O -R'
alias vimro='vim -R -O'
alias vimsudo='sudoedit'
alias sudovim='sudoedit'
alias sudovimdiff='SUDO_EDITOR="nvim -d" sudoedit'
alias vimdiffsudo='SUDO_EDITOR="nvim -d" sudoedit'
alias sudovimo='SUDO_EDITOR="nvim -O" sudoedit'
alias vimosudo='SUDO_EDITOR="nvim -O" sudoedit'
# workaround because I am unable to set it in the ltex lsp config
alias nvim-java='JAVA_HOME=/usr/lib/jvm/java-11-openjdk nvim'
# less
alias less='less -QR'
alias man 'man -P "less -Q"'
# git
alias g='git'
alias ga='git add'
alias gaa='git add --all'
alias gcb='git checkout -b'
alias gco='git checkout'
alias gf='git fetch'
alias gfa='git fetch --all --prune'
alias gpom='git pull origin master --rebase'
alias gg='git gui citool'
alias gga='git gui citool --amend'
alias ggui='git gui citool'
alias gui='git gui citool'
alias gk='\gitk --all --branches'
compdef _git gk='gitk'
alias glg='git log --stat'
alias glo='git log --oneline --decorate'
alias glog='git log --oneline --decorate --graph'
alias gst='git status'
alias git-branch-cleanup='git fetch -p && for branch in `git branch -vv | grep ": gone]" | awk "{print $1}"`; do git branch -D $branch; done'
# Kitty
alias icat="kitty +kitten icat"
alias kdiff="kitty +kitten diff"
alias kssh="kitty +kitten ssh"