I’m new to bash, but eager to learn.
Right now I’m stealing useful scripts from other ppl and are wondering where I should put them. So I have a bunch of *.sh files, but don’t know where they should go. To make it even more useful I would like a way to share them with my other puter with Dropbox. Is it as simple as linking the dropbox folder to the right place?
Sincerly
R
If the scripts are “general purpose” the best place to put them is in
~/binthen they always will be available from the cmd-line (i.e. if that folder is in $PATH)One approach is to use mercurial via bitbucket or git via github
Create an account there and add your scripts. There are many advantages to this approach, some of them are
git cloneaway if you are on a new machine.git pullyour environment is updated to the latestAfter a while you will probably add your dotfiles there as well (that is what I do), then whenever I’m forced to use a new machine, it will only take seconds to set up my favorite environment! There are many post here on SO about managing your dotfiles, just search for that term and start reading…