Skip to content

Instantly share code, notes, and snippets.

@rjchatfield
Created February 21, 2014 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjchatfield/9133503 to your computer and use it in GitHub Desktop.
Save rjchatfield/9133503 to your computer and use it in GitHub Desktop.
Generates a hidden folder of symlinks to your dotfiles. Open ~/.dotfiles directory in text editor for easy access, without all the other stuff.
#!/bin/bash
mkdir ~/.dotfiles;
cd ~/.dotfiles;
ln -s ../.bash_profile;
ln -s ../.bash_prompt;
ln -s ../.exports;
ln -s ../.aliases;
ln -s ../.functions;
ln -s ../.profile;
ln -s ../.gitconfig;
ln -s ../.vimrc;
ln -s ../.ssh/config;
echo ;
echo "Created: .dofiles folder and symlinks"
# subl -nw .
@rjchatfield
Copy link
Author

To run this without downloading it:
$ curl https://gist.githubusercontent.com/rjchatfield/9133503/raw/7a396195762b976a16bca6471e6ad3a5336979f0/dotfiles_folder_gen.sh | sh

To create an alias to edit your dotfiles:
$ echo -e "\nalias BASH_EDIT='subl -nw ~/.dotfiles'" >> .aliases ; . ~/.aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment