Extend -Is.
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 7de8245..a151d70 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -231,7 +231,8 @@ export LC_COLLATE=C
 # as it breaks Mutt "utf-8" and somehow it is no longer needed.
 # Re: [Bug-readline] Readline 6.0 patch 004 trapped signal echoed to conso
 # http://lists.gnu.org/archive/html/bug-readline/2009-09/msg00006.html
-stty -echoctl
+# 2>/dev/null for possible: stty: standard input: Inappropriate ioctl for device
+stty -echoctl 2>/dev/null
 
 function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }
 # SunOS does not support "-m"
@@ -265,6 +266,7 @@ function ctags {(unset ctags
                                                -o -name "*.[chCy]" \
                                                -o -name "*.cc"    \
                                                -o -name "*.cxx"   \
+                                               -o -name "*.cpp"   \
                                                -o -name "*.java"  \
                                                -o -name "*.p[lm]" \
                                                -o -name "*.py" \
@@ -333,6 +335,8 @@ function sourcewarecvscheckout {(set -ex
        #(set +x;cvsignoresall)
        (set +x;ignoresall)
        );}
+function gdbgitclone { git clone git://sourceware.org/git/gdb.git gdb-git; }
+function binutilsgitclone { git clone git://sourceware.org/git/binutils.git binutils-git; }
 function gdbcvscheckout { sourcewarecvscheckout gdb; }
 function binutilscvscheckout { sourcewarecvscheckout binutils; }
 function gdbdevelcvscheckout {(set -ex
@@ -349,7 +353,12 @@ function gdbf12cvscheckout {(set -ex
        );}
 function uri_escape   { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape   $_;'; };
 function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; };
-function n { if [ "$1" = "-p" ];then renice +19 "$@";ionice -c3 "$@";else nice -n19 ionice -c3 "$@";fi };
+if which ionice &>/dev/null;then
+       IONICE="ionice -c3"
+else
+       IONICE=""
+fi
+function n { if [ "$1" = "-p" ];then renice +19 "$@";test -n "$IONICE" && $IONICE "$@";else nice -n19 $IONICE "$@";fi };
 function rpmsrclist
 {
        if [ -z "$*" ]; then