edit-host-specific-shell-file 243 B

12345678910111213
  1. #!/bin/zsh -f
  2. if [[ -f ~/.`hostname`.zsh ]] ; then
  3. eaf ~/.`hostname`.zsh
  4. else
  5. cat <<EOF > ~/.`hostname`.zsh
  6. # -*- shell-script -*-
  7. # $(hostname) specific configuration
  8. echo "You are on $(hostname -s)
  9. EOF
  10. eaf ~/.`hostname`.zsh
  11. fi