mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Add/improve various shell aliases
This commit is contained in:
parent
74b9523476
commit
3faad3df4b
15
aliases
15
aliases
@ -11,16 +11,15 @@ alias ..ll="cd..;ll"
|
|||||||
alias ..l="..ll"
|
alias ..l="..ll"
|
||||||
|
|
||||||
alias l=ll
|
alias l=ll
|
||||||
alias ll="ls -lFh"
|
alias ll="ls -lFh --group-directories-first"
|
||||||
alias la="ls -lAFh"
|
alias la="ls -lAFh --group-directories-first"
|
||||||
alias lat='la -t'
|
alias lt='ls -lAFh --sort=time'
|
||||||
alias al=la # No, I don't need the Mono Assembly Linker
|
alias al=la # No, I don't need the Mono Assembly Linker
|
||||||
|
|
||||||
alias md="mkdir -p"
|
alias md="mkdir -p"
|
||||||
alias rd="rmdir -p"
|
alias rd="rmdir -p"
|
||||||
mcd(){
|
mcd(){ mkdir -p $@ && cd $@; }
|
||||||
mkdir -p $1 && cd $1
|
alias -- -='cd -'
|
||||||
}
|
|
||||||
alias cdt='cd `mktemp -d`'
|
alias cdt='cd `mktemp -d`'
|
||||||
alias grep='grep --color'
|
alias grep='grep --color'
|
||||||
alias -g H='| head'
|
alias -g H='| head'
|
||||||
@ -53,6 +52,7 @@ alias cp='cp -ir'
|
|||||||
alias pacman='pacman --color=always'
|
alias pacman='pacman --color=always'
|
||||||
alias pacaur='pacaur --color=always'
|
alias pacaur='pacaur --color=always'
|
||||||
alias tree='tree --dirsfirst -C -F'
|
alias tree='tree --dirsfirst -C -F'
|
||||||
|
alias make="make -j$(nproc)"
|
||||||
alias dd='dd status=progress'
|
alias dd='dd status=progress'
|
||||||
alias env='env | sort'
|
alias env='env | sort'
|
||||||
alias ssh="ssh -tt"
|
alias ssh="ssh -tt"
|
||||||
@ -132,6 +132,7 @@ gd() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
alias gds="git diff --staged --color-words"
|
alias gds="git diff --staged --color-words"
|
||||||
|
alias gsh="git show --color-words"
|
||||||
alias glg="git log --stat --color"
|
alias glg="git log --stat --color"
|
||||||
alias glog="git log --oneline --decorate --color --graph"
|
alias glog="git log --oneline --decorate --color --graph"
|
||||||
|
|
||||||
@ -148,7 +149,7 @@ alias grro="grr origin"
|
|||||||
|
|
||||||
alias gsta='git stash'
|
alias gsta='git stash'
|
||||||
alias gstd='gsta drop'
|
alias gstd='gsta drop'
|
||||||
alias gstl='gsta list'
|
alias gstl='gsta list --stat --color'
|
||||||
alias gstp='gsta pop'
|
alias gstp='gsta pop'
|
||||||
alias gstv="gsta show -p stash@{0}"
|
alias gstv="gsta show -p stash@{0}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user