From 3d5f2f2fa6269f8d6a1412cbbddbb538121b28f2 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Sat, 25 Jun 2022 11:36:24 -0500 Subject: Add git-prompt.sh. Some distros require it E.g., Amazon Linux 2 --- bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 0045d60..6b34e07 100644 --- a/bashrc +++ b/bashrc @@ -122,7 +122,9 @@ fi # Custom prompt: # Blue timestamp and italic green pwd #PS1='\[\033[34m\]|\D{%H:%M:%S}| \[\033[3;32m\][\w]\[\033[00m\]\n\$ ' -# git-bash promp is helpful when browsing a git-repository +# If error `-bash: __git_ps1: command not found`, uncomment the following line +# Ref.: https://stackoverflow.com/a/15398153/7498073 +#source ~/.git-prompt.sh PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ ' # Environmental variables: @@ -161,3 +163,6 @@ if [ -f /usr/bin/brew ]; then # for info pages export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH}" fi + +# Node.js +export NODE_PATH=~/code/nodejs/node-v16.15.1-linux-x64/lib/node_modules -- cgit v1.2.3