Files
dotfiles/setup.d/00-bash.sh
Vasili Svirydau cf075eb3cc .
2021-04-16 13:43:22 -07:00

14 lines
290 B
Bash

#!/bin/bash
if [[ $SHELL =~ "bash" ]]; then
SIGIL="# Managed by dotfiles"
if ! grep "$SIGIL" ~/.bashrc > /dev/null; then
(
echo "$SIGIL"
echo "for f in $DOTFILES/bash.d/*.sh; do source \"\$f\"; done"
echo "unset f"
) >> ~/.bashrc
fi
fi