Setup Rbenv, Ruby and Rails on Ubuntu 16.04

If you're still new to Ubuntu I've a post with some useful commands that'll help you navigate and use the terminal! Useful Unix Commands for macOS or Linux Update and install some dependencies apt-get is a package manager command line tool similar to Homebrew on macOS and is used to manage applications on Ubuntu. Lets update … Continue reading Setup Rbenv, Ruby and Rails on Ubuntu 16.04

Advertisement

Show Git Branch in Terminal

PS1 stands for Prompt String 1. It is the one of the prompts available in the Linux/UNIX shell. When you open your terminal, it will display the content defined in the PS1 variable in your bash prompt. We can use this to display the name of the current Git branch in our prompt. The parse_git_branch function … Continue reading Show Git Branch in Terminal