.bash_profile and scripts as symbolic links [closed] - macos

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'd like to know, if there is any problem when I set my .bash_profile or other configs such as .irssi or .slate as symbolic links. The thing is, I would like to git all my configs and scripts in /usr/local/bin(I'm on OS X), so that I have version control and a backup for them. This way, I can also use them on other machines.
I was just wondering whether anything could break, if I'm doing that.

Yes as long as the symlinks are valid and the user has proper permissions to read those locations, you should not have any problem.

Nothing breaks, that's exactly how people put their dotfiles under version control

Related

how to edit the .profile file to have shortcuts for commands? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
im really new to unix, i wanted to learn how to edit a .profile script on OSX lion to help me have shortcut for this directory:
/usr/local/cellar/node_modules/node.io/bin/node.io
i want to be able to run the program like this:
node.io -h
instead of :
/usr/local/cellar/node_modules/node.io/bin/node.io -h
for some reason npm hasn't decided to set paths for me, even though i used -g, so going to do it manually.
export PATH=${PATH}:/usr/local/cellar/node_modules/node.io/bin

Fix $PATH on Mac OS [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I was trying to add a dir to my path environment but somehow things went wrong and now the terminal wont even recongnize the 'ls' command.
How can I reset or fix this?
Thanks.
Do it from another account, if needed by booting in single user mode: http://support.apple.com/kb/HT1492
This presumes that you are familiar with the basics of Unix shells.

Removing windows aliases [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Recently, I gave some folders an alias for web sharing. The folders got cut and pasted out of their original location and then restored. The aliases were lost in the process yet when I try to reassign them the same alias it complains that the alias is taken. No other folder has these aliases only they did but that was lost in the cut and paste. Is there a system file somewhere or a registry I can edit to remove them so I can reapply them? The alias names are sensitive. The OS is Windows Server 2003.
I deleted the websites from IIS, refreshed and I was able to make the alias again.

Mac Terminal return to basic theme [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I thought it was a good idea to mess around with my terminal and install a lot of things I didn't know on to it. I have come to my senses are need to restore it so it is clean like the day I got it. I have looked around and can not find anything on google.
Is there any commands I can run which will wipe it and start a fresh?
This is what I stupidly installed
https://github.com/skwp/dotfiles
I have tried running
rm -rf ~/.yadr
But nothing happens.
Look in ~/.profile for anything strange. Usually that contains at most a PATH definition. Or, look in ~/.bash_profile. Take a copy first and delete anything you don't like the look of!

What is the trick with c:\program? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
Improve this question
I found that taking any exe file, renaming it to program (without extension) and putting it in C:\ root folder might cause strange things in windows like showing this application when other programs start.
What is it? is it some kind of backdoor?
p.s if you restart windows after doing so - you get a warning about it.
thanks,
Adi Barda
Maybe the fact that some programs don't know how to access C:/Program Files/. because it has a space. Then they are trying to execute C:/program, which in your case turns out to be the file you created.

Resources