comparison zshrc-gentoo @ 73:a48ea5d61dee

add alias for printing all IP addresses
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 11 Aug 2015 17:48:12 +0200
parents 42efae6b3fe2
children fbf374902161
comparison
equal deleted inserted replaced
72:42efae6b3fe2 73:a48ea5d61dee
22 alias les="less" 22 alias les="less"
23 alias wu="emerge -uvDa world" 23 alias wu="emerge -uvDa world"
24 alias xm="xmodmap ~/.Xmodmap" 24 alias xm="xmodmap ~/.Xmodmap"
25 25
26 # custom functions for gentoo 26 # custom functions for gentoo
27 ipa() {
28 CMD="ip addr show"
29 if [ $# -gt 0 ]; then
30 CMD="$CMD dev $1"
31 fi
32 eval $CMD
33 }
27 kcs() { source $HOME/.keychain/${HOST}-sh } 34 kcs() { source $HOME/.keychain/${HOST}-sh }
28 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } 35 ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more }
29 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } 36 lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" }
30 service() { /etc/init.d/"$@" } 37 service() { /etc/init.d/"$@" }