From ae4a29c0df6b64bd49a29d5f99517e67d8c14bde Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Wed, 21 May 2014 14:50:07 +0200 Subject: Bash config: extend aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- .bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bashrc b/.bashrc index 7fcf07d..2a3f101 100644 --- a/.bashrc +++ b/.bashrc @@ -58,11 +58,18 @@ test "$(ack --version | head -n1 | sed 's|^ack\s\([0-9]\+\).*|\1|')" -ge 2 \ # ^X goes in to the way of vim's omnicompletion stty stop ^P +# almost canonical aliases (man pages, etc.) +alias r="fc -s" + # op(t)inioned commands alias tree='tree -a' alias mc='LESS="-RSX" mc' alias tmux='tmux -2' alias acka='$ACK --follow' +alias fname='find -name' +alias mk='make -j$( \ + nproc --ignore=1 2>/dev/null \ + || sed "s|.*\([0-9]\+\)$|\1|" /sys/devices/system/cpu/online; )' # internal, debug, etc. alias hist-del-last='history -d $(history 1 | cut -d" " -f2)' # historical NOOP -- cgit