Skip to content

About

demo and practice repo for GitHub for Developers (April 13-14, 2016)

Resources

Stars

3 stars

Watchers

31 watching

Forks

Latest commit

 

History

326 Commits

Folders and files

Repository files navigation

Join the chat at https://gitter.im/githubteacher/github-for-developers-2016-04

Please note: we'll be using Gitter, a chat service that integrates with GitHub, for Q&A. Please click on the button above to join the chat room associated with this repo.

Useful Bits

To print the name of your currently checked out branch in your prompt, include this line as part of your PS1:

git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'

Extras

A few people also asked about @patrickmckenna's Terminal.app theme. He uses ocean-terminal. His PS1 (prompt) is

export PS1="\[\$(tput bold)\]\[\$(tput setaf 6)\]\w\[\$(tput setaf 3)\]\$(git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/')\[\$(tput setaf 6)\] > \[\$(tput sgr0)\]"

About

demo and practice repo for GitHub for Developers (April 13-14, 2016)

Resources

Stars

3 stars

Watchers

31 watching

Forks

Releases

Packages

Contributors