Bash script to sync development workspace snapshots.
z0m8i3 87fb5150cb edit instructions skipped | 6 年 前 | |
---|---|---|
LICENSE | 6 年 前 | |
README.md | 6 年 前 | |
workspace-sync.sh | 6 年 前 |
This script is useful in environments when you're developing applications and need to frequently refresh the workspace to its original state.
At the command of an alias, this script:
:pencil2: Edit workspace-sync.sh and edit your environment's config.
:open_file_folder: Place the .sh script in your scripts directory, make note of its path.
Make it executable:
chmod +x workspace-sync.sh
Add the alias to your bashrc file (run as the user that will be triggering the command; not necessarily root):
echo alias wssync=\'~/scripts/workspace-sync.sh\' >> ~/.bashrc
(adjust the filepath accordingly)
Refresh the bashrc file without needing to log out:
. ~/.bashrc
Done.
To trigger it, enter wssync
in your cli.