Skip to content

Instantly share code, notes, and snippets.

@Skrobson
Skrobson / GitBranchInTerminal
Last active November 16, 2023 19:25
Git branch visible in terminal
####GIT
# Add in ~/.bashrc or ~/.bash_profile
# apply with 'source ~/.bashrc'
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[01;31m\]"
YELLOW="\[\033[01;33m\]"
df
sudo umount /dev/<your device> #from previous command
sudo dd bs=4M if=~/Downloads/ubuntu-18.04.2-live-server-amd64.iso of=/dev/<your device> status=progress oflag=sync