bash shell custom prompt - simeonlam/knowledge GitHub Wiki

my prompt

export PS1="\n
\$(show_k8s_info) github:[\$(github_config)] repo:[\$(repo_name)] fluxNS:[\$(flux_namespace)]\n
\[$(tput bold)\]\[$(tput setaf 6)\]$(date +%Y-%m-%d) \t \[$(tput setaf 1)\][\[$(tput setaf 2)\]\u\[$(tput setaf 1)\]@\[$(tput setaf 3)\]\h \[$(tput setaf 6)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 4)\]\[\033[32m\]\$(parse_git_branch) \[\033[00m\]\\$ \[$(tput sgr0)\]"