git branching for a web browser.
Add the following to your ~/.bashrc
or ~/.zshrc
file
function db {
./browser.sh "$1"
}
Move the file browser.sh to your home directory.
Create a new context or web browser branch
db <new-branch-name>
Open an existing web browser branch
db <existing-branch-name>
Branch names are .txt files with a URL per line. When you open a branch, your browser window will close and reopen with the URLs from the branch.
Two things I'd like to add:
- Syncing tabs easily (right now it's manual)
- Setting the default browser easily
Brev.dev makes it easy to develop on remote machines. Use Brev.dev to start a project and share your development environment.