X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=.bashrc;h=12b60b8b29b6e0cefbb153de6c1bc1b16285d376;hb=e72acaee4cf7c394ca0e35b84d3afbd8ef5a4b32;hp=470a1a469b9463d036b5d12685c762650aed837f;hpb=cb002f1dc386fdf42b30133351b90e6d2a662174;p=distro-setup diff --git a/.bashrc b/.bashrc index 470a1a4..12b60b8 100644 --- a/.bashrc +++ b/.bashrc @@ -31,12 +31,14 @@ 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 -#### begin section that works with sl() function to return from -# noninteractive ssh shells, or tty. tty because often i -# use it when something is going and io is slow and my bashrc -# is too slow. + +#### if (in +# noninteractive ssh shells or tty). tty because often i use it when +# something is going and io is slow and my bashrc is too slow. if [[ $LC_USEBASHRC != t && ( $SSH_CONNECTION || $TERM == linux ) ]]; then # Here we did not opt-in to running our .bashrc file so we just # return, but we still setup a function to source it without returning @@ -86,6 +88,9 @@ else source $_tmp fi fi + if [[ $IANK_BASHRC_RUN ]]; then + $IANK_BASHRC_RUN ||: + fi ###### End sourcing of files ##### fi #### end section that works with sl() function to return from @@ -101,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