Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created January 11, 2018 17:27
Show Gist options
  • Save gilesbowkett/f7942465cbf5e473c38ee3afc1497f81 to your computer and use it in GitHub Desktop.
Save gilesbowkett/f7942465cbf5e473c38ee3afc1497f81 to your computer and use it in GitHub Desktop.
function this() { # obtain git branch
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
# https://superuser.com/a/599156
function tab-title {
echo -ne "\033]0;"$*"\007"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment