Skip to content

Instantly share code, notes, and snippets.

@spuder
Last active April 23, 2017 17:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save spuder/11360474 to your computer and use it in GitHub Desktop.
Save spuder/11360474 to your computer and use it in GitHub Desktop.
A script that pulls my bash profile from gists stored on github
#!/bin/bash
#Usage: Execute the following command:
<<COMMENT1
curl -L https://gist.github.com/spuder/11360474/raw/ | bash -x
COMMENT1
#Once this file has been executed once, you can pull the latest updates with 'bashupdate'
curl -L https://gist.github.com/spuder/11360447/raw/ > ~/.bash_profile
curl -L https://gist.github.com/spuder/730226a73e45f5d3cff5/raw/ > ~/.bash_ps1
# The url's are derived from clicking the <> button on github, then truncating everything after /raw/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment