#!/bin/bash ###################################################### ### things to do AFTER host/user-specific settings ### ###################################################### ### .... ### ### BASH ### ### '''' ### make_ps1() { source "${HOME}/.bash/colors" # these functions must be already defined by ~/.bash/user/*.bashrc # and ~/.bash/host/*.bashrc ps1u=$(make_ps1u) ps1h=$(make_ps1h) ps1w="$lblue\w$normal"; ps1G='$(__git_ps1 "(%s)")'; ps1g="$green$ps1G$normal"; echo "$ps1u@$ps1h:$ps1w$ps1g$normal\$ "; } make_ps2() { source "${HOME}/.bash/colors" echo "$white>$yellow>$lyellow>$normal "; } # and use to assemble own PS1 export PS1=$(make_ps1) export PS2=$(make_ps2) ### ...... ### ### OTHERS ### ### '''''' ###