]> git.nbdom.net Git - nb.git/commitdiff
nb-ips
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 21 May 2015 15:03:32 +0000 (16:03 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 21 May 2015 15:03:32 +0000 (16:03 +0100)
etc/bashrc.function

index 22748421c519df954e85696f290c0ca75113ea94..9bc6d541878ca4d26493eb1d2964c6e325f81d59 100644 (file)
@@ -283,5 +283,5 @@ nb-alert() {
 }
 
 nb-ips() {
-  ifconfig | perl -ne '/^\s*inet (?:addr:)?([\d\.]+)/ and print "$1\n"'
+  ifconfig | perl -ne '/^\s*inet (?:addr:)?([\d\.]+)/ and $1 ne "127.0.0.1" and print "$1\n"'
 }