.
This commit is contained in:
13
setup.d/00-bash.sh
Normal file
13
setup.d/00-bash.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user