Skip to content

Instantly share code, notes, and snippets.

View milenovdaniel's full-sized avatar
:octocat:

Daniel Milenov milenovdaniel

:octocat:
View GitHub Profile
@milenovdaniel
milenovdaniel / Makefile.golang
Created October 19, 2023 18:56 — forked from dnishimura/Makefile.golang
Makefile for Golang projects
# Makefile for a go project
#
# Author: Jon Eisen
# site: joneisen.me
#
# Targets:
# all: Builds the code
# build: Builds the code
# fmt: Formats the source files
# clean: cleans the code
@milenovdaniel
milenovdaniel / terminal-git-branch-name.md
Created May 8, 2021 05:03 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {