summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-05-21 14:50:07 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-05-21 14:50:07 +0200
commitae4a29c0df6b64bd49a29d5f99517e67d8c14bde (patch)
tree859447e6d7127b577900d3d8aed8de15150ac276
parent229eb60f7349968512de79cc944082b0844c7a1b (diff)
downloaddotfiles-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--.bashrc7
1 files changed, 7 insertions, 0 deletions
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