Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. # copy zshrc to a folder, e.g. dropbox, for reference on other machines
  2. #
  3. dotfiles="/Users/you/path/to/dir"
  4. if [ -d $dotfiles ]
  5. then
  6. echo "dotfiles folder exists. Copying .zshrc to ${dotfiles}/zshrc"
  7. cat "/Users/you/.zshrc" > "${dotfiles}/zshrc"
  8. else
  9. echo "dotfiles folder does not exists. Creating it"
  10. mkdir -p $dotfiles
  11. echo "Copying .zshrc to ${dotfiles}/zshrc"
  12. cat "/Users/you/.zshrc" > "${dotfiles}/zshrc"
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement