Skip to content

Instantly share code, notes, and snippets.

View carmat's full-sized avatar
🏠
Working from home

Colm Morgan carmat

🏠
Working from home
View GitHub Profile
## Set title on each tab
## ====================================
## Gets the repository directory
## name and current branch name
##
## If the current directory is not a
## git repo, a tabname can be specified
## ====================================
## @usage: tabname (git)
## @usage: tabname name (non-git)

This is an adaptation of https://twitter.com/jasonneylon script.

In the terminal window, you can open your current repo (at the current branch) in your default browser.

My adaptation was adding options to view the commits, branches, pull requests or issues for the repo using one of the additional options (added support for wiki, settings, pulse, graphs, network):

[h]               => View help
[c]               => View commits
[c {SHA}]         => View specific commit from commit SHA

[b] => View branches