Procházet zdrojové kódy

Added a script to edit the host specific shell config

Samuel W. Flint před 8 roky
rodič
revize
722cdf35a8
1 změnil soubory, kde provedl 11 přidání a 0 odebrání
  1. 11 0
      edit-host-specific-shell-file

+ 11 - 0
edit-host-specific-shell-file

@@ -0,0 +1,11 @@
+#!/bin/zsh -f
+
+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
+    eaf ~/.`hostname`.zsh
+fi