Home / Programming / Bash

Bash

Add git branch name to bash prompt

https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt https://medium.com/fuzzy-code/show-current-git-branch-in-terminal-macos-e319e88046a6 View the code on Gist. https://stackoverflow.com/questions/17333531/how-can-i-display-the-current-branch-and-folder-path-in-terminal https://www.codementor.io/tips/8142473421/add-colors-and-show-git-branches-in-your-bash-terminal-osx-

Read More »

How to export environment variables defined in a file

Using environment variables in modern applications is very common https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file https://unix.stackexchange.com/a/79084/30988 set -a . ./tmp.txt set +a

Read More »