X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=.bashrc;h=12b60b8b29b6e0cefbb153de6c1bc1b16285d376;hb=86560196eb4ccc90a7c1d903de47fcb887656de4;hp=d8cbd978008030d1ca4fbbc6be9e982ff332da7e;hpb=768363d8771edb9d9ed82425fa772d77b90139c0;p=distro-setup diff --git a/.bashrc b/.bashrc index d8cbd97..12b60b8 100644 --- a/.bashrc +++ b/.bashrc @@ -31,6 +31,9 @@ HISTCONTROL=ignoredups # but meh. dunno why, but just " *" does glob expansion, so use [ ] to avoid it. HISTIGNORE='pass *:otp *:oathtool *:histrm *' +# note: duplicated in /a/bin/ds/filesystem/etc/profile.d/environment.sh +umask 022 + #### if (in @@ -103,3 +106,10 @@ return 0 ## BEGIN_KITTY_SHELL_INTEGRATION # if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi ## END_KITTY_SHELL_INTEGRATION + +# Automatically added by the Guix install script. +if [ -n "$GUIX_ENVIRONMENT" ]; then + if [[ $PS1 =~ (.*)"\\$" ]]; then + PS1="${BASH_REMATCH[1]} [env]\\\$ " + fi +fi