Basically I want to create a quick set of commands so that I can type into the terminal and have it do this:
cd /path/to/folder/of/symlink sudo rm -f symlink sudo ln -s /new/path/of/symlink cd /new/path/of/symlink
I work for a company whose software is housed in a central location and uses symlinks to work around problems created by working out of a subversion repo branch (or whatever else) since the software relies on specific paths to run. My dilemma is that I tend to have to switch back and forth between various branches and the trunk on a regular basis (several times a day). So what I would like to do is at the very least create some type of script I can run in the terminal and enter a unique command example:
I don't mind having to hardcode the above stuff per folder I need to switch to, or making a unique identifier for each to make my life just a little easier, but I'm not sure how to actually create a script so that I can use it as a custom command or what kind of scripting I would need to use for it to work in linux. So any advice/help would be good for me at this point.