Explorar o código

Added a script to edit the host specific shell config

Samuel W. Flint %!s(int64=8) %!d(string=hai) anos
pai
achega
722cdf35a8
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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