summaryrefslogtreecommitdiffstats
path: root/bashrc/net/init.sh
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2012-06-11 16:36:33 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2012-06-11 16:36:33 +0200
commite7d301d0c1ac4849d79aeadd2a879e120631ba7c (patch)
tree1eeabcd22b9f4fca4045d3ec272f50a093d29066 /bashrc/net/init.sh
parent474f963e21b0cf30cb5ad313e1656aea0c276d0c (diff)
downloaddotfiles-e7d301d0c1ac4849d79aeadd2a879e120631ba7c.tar.gz
dotfiles-e7d301d0c1ac4849d79aeadd2a879e120631ba7c.tar.xz
dotfiles-e7d301d0c1ac4849d79aeadd2a879e120631ba7c.zip
bashrc: add possibility to change settings based on the domain
Diffstat (limited to 'bashrc/net/init.sh')
-rw-r--r--bashrc/net/init.sh7
1 files changed, 7 insertions, 0 deletions
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