소스 검색

Added a script to edit the host specific shell config

Samuel W. Flint 8 년 전
부모
커밋
722cdf35a8
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  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