Add aliases

master
Hektor Misplon 2020-12-03 12:00:52 +01:00
parent 7d7e87379c
commit 041e4545ea
1 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,6 @@
alias bashrc="vim ~/.bashrc" alias bashrc="vim ~/.bashrc"
alias aliasrc="vim ~/.aliasrc" alias aliasrc="vim ~/.aliasrc"
alias vimrc="vim ~/.vimrc"
alias ..="cd .." alias ..="cd .."
alias ...="cd ../.." alias ...="cd ../.."
@ -11,7 +12,19 @@ alias ip='ip --color'
alias l='ls -1' alias l='ls -1'
alias ll='ls -lh' alias ll='ls -lh'
alias lt='ls -lht'
alias la='ls -lha' alias la='ls -lha'
alias lta='ls -lhat'
# Safety
alias rm='rm -I --preserve-root'
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
alias mkdir='mkdir -p'
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
alias lgrep='l . | grep' alias lgrep='l . | grep'
alias lagrep='la . | grep' alias lagrep='la . | grep'
@ -19,6 +32,8 @@ alias lagrep='la . | grep'
# Pretty print path variables # Pretty print path variables
alias path='echo -e ${PATH//:/\\n}' alias path='echo -e ${PATH//:/\\n}'
alias df='df -kTh'
alias fzfpac="pacman -Slq | fzf -m --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S" alias fzfpac="pacman -Slq | fzf -m --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S"
alias vi='vim' alias vi='vim'