I made a new file .bashrc to change prompt at my folder /Users/myfolder, but it doesn't work, what can I do?
I made a new file .bashrc to change prompt at my folder /Users/myfolder, but it doesn't work, what can I do?
I used nano to edit my .bashrc file.Start by posting the ~/.bashrc file, and then elaborate on what exactly "it doesn't work" means.
Which text editor did you use to create and/or edit the file?
Any chance it may have non-Unix line endings? [i.e., not \n]
You misunderstand how .bashrc is supposed to work. It is supposed to be automatically invoked by the shell, and its contents executed. You shouldn't have to do anything, other than open Terminal as usual.I used nano to edit my .bashrc file.
when I run ./.bashrc the "permission dinied" is showed. here is my file as below, may I have to add x permission?
-rw-r--r-- 1 mikezang staff 19 6 20:09 .bashrc
I used source .bashrc to activate it.You misunderstand how .bashrc is supposed to work. It is supposed to be automatically invoked by the shell, and its contents executed. You shouldn't have to do anything, other than open Terminal as usual.