# HG changeset patch # User Dirk Olmes # Date 1439308092 -7200 # Node ID a48ea5d61dee3a5ed93fac3c3fb70690a38abb55 # Parent 42efae6b3fe2e682e30d050aca721246d1199a72 add alias for printing all IP addresses diff -r 42efae6b3fe2 -r a48ea5d61dee zshrc-gentoo --- a/zshrc-gentoo Wed Jul 08 16:37:26 2015 +0200 +++ b/zshrc-gentoo Tue Aug 11 17:48:12 2015 +0200 @@ -24,6 +24,13 @@ alias xm="xmodmap ~/.Xmodmap" # custom functions for gentoo +ipa() { + CMD="ip addr show" + if [ $# -gt 0 ]; then + CMD="$CMD dev $1" + fi + eval $CMD +} kcs() { source $HOME/.keychain/${HOST}-sh } ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" }