Alias shell

De Banane Atomic
Aller à la navigationAller à la recherche

ls

Bash.svg
alias ls='ls --color=auto'
alias l='ls -lh'
alias ll='ls -lah'
alias lt='ls -ltrh'

autres

Bash.svg
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '

alias fd='find . -type d -name'
alias ff='find . -type f -name'

alias h='history'
alias hgrep="fc -El 0 | grep"

pacman

Bash.svg
alias pc='sudo pacman -S'
alias pcr='sudo pacman -Rs'
alias pcrn='sudo pacman -Rsn'
alias pcs='pacman -Ss'
alias pcq='pacman -Qs'
alias pcqa='pacman -Qm'
alias pci='pacman -Qi'

#alias pch='pacman -Qei | awk '"'"'/^Nom/ {pkg=$3} /^Installé/ {print $5,$6,$7,"- "pkg}'"'"' | sort -k 3,3 -k 2M -k 1'
alias pch='pacman -Qei | awk '"'"'/^Name/ {pkg=$3} /^Install Date/ {print $5,$6,$7,$8,$9,"- "pkg}'"'"' | sort -k 3,3 -k 2,2M -k 1,1 -k 5,5'

alias pcu="script -q -c 'sudo pacman -Syu' ~/update"
alias yu='yaourt -Syua'

alias aur='makepkg -s'
alias pca='sudo pacman -U' # *.pkg.tar.xz

git

Bash.svg
alias gitc='git commit -a -m'
alias gita='git add'
alias gits='git status'
alias gitd='git diff'
alias gitds='git diff --staged'
alias gitp='git push origin'
alias gitb='git branch -a'