Created
February 21, 2014 12:35
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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