From e7d301d0c1ac4849d79aeadd2a879e120631ba7c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 11 Jun 2012 16:36:33 +0200 Subject: bashrc: add possibility to change settings based on the domain --- bashrc/net/init.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bashrc/net/init.sh (limited to 'bashrc/net') diff --git a/bashrc/net/init.sh b/bashrc/net/init.sh new file mode 100644 index 0000000..61f64f2 --- /dev/null +++ b/bashrc/net/init.sh @@ -0,0 +1,7 @@ +# get net specific data +declare -r _FQDN=$(hostname -f) +declare -r _NETNAME=${_FQDN#*.} + +if [[ -n "${_NETNAME}" ]]; then + _load net '*' +fi -- cgit v1.2.3