feat: git aliases
This commit is contained in:
parent
ad23453ff6
commit
37b1e0cdb9
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias la='ls --color=auto -lah'
|
alias la='ls --color=auto -lah'
|
||||||
|
alias gnp="git --no-pager"
|
||||||
|
alias gl="git --no-pager log --oneline"
|
||||||
|
alias gls="git ls-files"
|
||||||
|
|
||||||
if git --version | awk '{print $3}' | awk -F. '{ if (($1>2) || ($1==2 && $2>=12)) exit 0; else exit 1 }'; then
|
if git --version | awk '{print $3}' | awk -F. '{ if (($1>2) || ($1==2 && $2>=12)) exit 0; else exit 1 }'; then
|
||||||
alias gcl='git clone --recurse-submodules -j$(($(nproc) / 2))'
|
alias gcl='git clone --recurse-submodules -j$(($(nproc) / 2))'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue