From 041e4545ea4a90f871f1100f4f946db4379f26bd Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 3 Dec 2020 12:00:52 +0100 Subject: [PATCH] Add aliases --- .aliasrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.aliasrc b/.aliasrc index 9fbc9b0..e7b2098 100644 --- a/.aliasrc +++ b/.aliasrc @@ -1,5 +1,6 @@ alias bashrc="vim ~/.bashrc" alias aliasrc="vim ~/.aliasrc" +alias vimrc="vim ~/.vimrc" alias ..="cd .." alias ...="cd ../.." @@ -11,7 +12,19 @@ alias ip='ip --color' alias l='ls -1' alias ll='ls -lh' +alias lt='ls -lht' 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 lagrep='la . | grep' @@ -19,6 +32,8 @@ alias lagrep='la . | grep' # Pretty print path variables 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 vi='vim'