diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-05-21 14:50:07 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-05-21 14:50:07 +0200 |
commit | ae4a29c0df6b64bd49a29d5f99517e67d8c14bde (patch) | |
tree | 859447e6d7127b577900d3d8aed8de15150ac276 | |
parent | 229eb60f7349968512de79cc944082b0844c7a1b (diff) | |
download | dotfiles-ae4a29c0df6b64bd49a29d5f99517e67d8c14bde.tar.gz dotfiles-ae4a29c0df6b64bd49a29d5f99517e67d8c14bde.tar.xz dotfiles-ae4a29c0df6b64bd49a29d5f99517e67d8c14bde.zip |
Bash config: extend aliases
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | .bashrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |