Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # copy zshrc to a folder, e.g. dropbox, for reference on other machines
- #
- dotfiles="/Users/you/path/to/dir"
- if [ -d $dotfiles ]
- then
- echo "dotfiles folder exists. Copying .zshrc to ${dotfiles}/zshrc"
- cat "/Users/you/.zshrc" > "${dotfiles}/zshrc"
- else
- echo "dotfiles folder does not exists. Creating it"
- mkdir -p $dotfiles
- echo "Copying .zshrc to ${dotfiles}/zshrc"
- cat "/Users/you/.zshrc" > "${dotfiles}/zshrc"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement