edit-host-specific-shell-file 294 B

1234567891011
  1. #!/bin/zsh -f
  2. if [[ -f ~/.`hostname`.zsh ]] ; then
  3. eaf ~/.`hostname`.zsh
  4. else
  5. echo "# -*- shell-script -*-" > ~/.`hostname`.zsh
  6. echo "# $(hostname) specific config" >> ~/.`hostname`.zsh
  7. echo "" >> ~/.`hostname`.zsh
  8. echo "" >> ~/.`hostname`.zsh
  9. eaf ~/.`hostname`.zsh
  10. fi