Skip to content

Instantly share code, notes, and snippets.

@prozacgod
Created November 10, 2015 15:56
Show Gist options
  • Save prozacgod/e8b93e42cf8cdc8704bc to your computer and use it in GitHub Desktop.
Save prozacgod/e8b93e42cf8cdc8704bc to your computer and use it in GitHub Desktop.
#!/bin/bash
# place in $HOME/bin
# with startup scripts in $HOME/bin/startup/00_asdf
# marked executable.
# To be executed during startup in users crontab, loads an environment similar to what
# the user expects in the normal bash prompt.
[ -s "/etc/bash.bashrc" ] && . /etc/bash.bashrc
[ -s "$HOME/.bashrc" ] && . $HOME/.bashrc
find $HOME/bin/startup -type f -executable -exec "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment