X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=a8e4d5f8bccfc1ade53ebd7b25a5a5b30d514f1a;hb=b6c69a0915fdc162184279f94448e6ff929a06c6;hp=78d28e3b59370a4cdf6b6877e9cee7cae27796c1;hpb=46adb986f6068b13c086a15aad90a42fcbe099c0;p=distro-setup diff --git a/brc b/brc index 78d28e3..a8e4d5f 100644 --- a/brc +++ b/brc @@ -188,8 +188,9 @@ if [[ $SOE ]]; then fi path_add /a/exe -# end just because it seems safer -path_add --end node_modules/.bin +# add this with absolute paths as needed for better security +#path_add --end /path/to/node_modules/.bin + # pip3 --user things go here: path_add --end ~/.local/bin path_add --ifexists --end /a/work/libremanage @@ -2089,13 +2090,10 @@ if [[ $- == *i* ]]; then bind -m vi-command W:shell-forward-word fi - if [[ $SSH_CLIENT ]]; then + if [[ $SSH_CLIENT || $SUDO_USER ]]; then PS1="\h $PS1" fi - - - prompt-command() { local return=$? # this MUST COME FIRST local psc pst ps_char ps_color stale_subvol