Browse Source

Updated host-specific shell-file edit script

Samuel W. Flint 8 years ago
parent
commit
ab3620f31c
1 changed files with 6 additions and 4 deletions
  1. 6 4
      edit-host-specific-shell-file

+ 6 - 4
edit-host-specific-shell-file

@@ -3,9 +3,11 @@
 if [[ -f ~/.`hostname`.zsh ]] ; then
     eaf ~/.`hostname`.zsh
 else
-    echo "# -*- shell-script -*-" > ~/.`hostname`.zsh
-    echo "# $(hostname) specific config" >> ~/.`hostname`.zsh
-    echo "" >> ~/.`hostname`.zsh
-    echo "" >> ~/.`hostname`.zsh
+    cat <<EOF > ~/.`hostname`.zsh
+# -*- shell-script -*-
+# $(hostname) specific configuration
+
+echo "You are on $(hostname -s)
+EOF
     eaf ~/.`hostname`.zsh
 fi