diff --git a/dist/init_rc.sh b/dist/init_rc.sh index b1fe4ad..1d56070 100644 --- a/dist/init_rc.sh +++ b/dist/init_rc.sh @@ -7,8 +7,8 @@ if [ -f "$HOME/.bashrc" ]; then elif [ -f "$HOME/.zshrc" ]; then SHELL_RC="$HOME/.zshrc" else - echo "No .bashrc or .zshrc file found in home directory." - exit 1 + touch "$HOME/.bashrc" + SHELL_RC="$HOME/.bashrc" fi echo "Using shell rc file: $SHELL_RC" @@ -21,3 +21,5 @@ if ! grep -q "export PATH=\$PATH:\$HOME/.local/bin" "$SHELL_RC"; then else echo ".local/bin is already in PATH in $SHELL_RC" fi + +source "$SHELL_RC"