summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-06-05 13:54:35 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-06-05 13:54:35 +0200
commit3db3c5294b441f6ac9d593867bbe12e4a9f3ff9f (patch)
tree583695c4839d39fef55a93039e7d93b60d1f401c
parent399ec9559fe159ee6785664ca7c7bab7d749d248 (diff)
downloaddotfiles-3db3c5294b441f6ac9d593867bbe12e4a9f3ff9f.tar.gz
dotfiles-3db3c5294b441f6ac9d593867bbe12e4a9f3ff9f.tar.xz
dotfiles-3db3c5294b441f6ac9d593867bbe12e4a9f3ff9f.zip
.bashrc: adjust function definition notation
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--.bashrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 99dd331..c50dc5a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -21,26 +21,26 @@ alias tmux='tmux -2'
alias gmy="pushd ~/wrkspc/gmy >/dev/null"
alias gwork="pushd ~/wrkspc/gwork >/dev/null"
-cdup() {
+cdup () {
local up="."
for i in $(seq 1 $1); do up+="/.."; done
cd "${up}" 2>/dev/null && pwd || :
unset up
}
-cdmk() {
+cdmk () {
cd "$1" 2>/dev/null || { mkdir "$1"; cd "$1";}
}
# Jim Meyring's take on "display the programs with W and X memory"
# http://lists.fedoraproject.org/pipermail/devel/2013-April/181747.html
-sec-wx-mem() {
+sec-wx-mem () {
grep -lE '^[0-9a-f-]+ .wx' /proc/*/maps 2>/dev/null \
| perl -ne 'm!^(/proc/(\d+))/.*! and printf qq(%5d %s\n), $2, `cat $1/cmdline`' \
| tr '\0' ' '
}
-ack-intersection() {
+ack-intersection () {
[ $# -ne 2 ] && echo "usage: $FUNCNAME 1st-regexp 2nd-regexp" && return
comm <(ack -al --follow "Topic" | sort) <(ack -al --follow "news" | sort) -12
}