How to Set Paths, Colors, Fonts and Aliases on a Linux System on a Macintosh
Check the version of OS X running on your Mac., Download Emacs for free from http://www.gnu.org/software/emacs/. , Install X11. , Open your existing .cshrc file, usually located in /Users/
Step-by-Step Guide
-
Step 1: Check the version of OS X running on your Mac.
If it is different than the one listed above, these steps may not work or may need to be modified. -
Step 2: Download Emacs for free from http://www.gnu.org/software/emacs/.
,, If you don't see it, use the list all function, ls
-a.
I would recommend using 'less' or 'more' to view the file so you don't make changes to the original file by accident. , If you haven't modified it, the only thing that should be in there is: set path = ( /sw/bin $path /abin /usr/local/bin) , setenv TERM xterm-color setenv CLICOLOR true setenv LSCOLORS ExDxHxAxCxegedabagacad , a black b red c green d brown e blue f magenta g cyan h light grey x default foreground or background ,,, Information beyond those characters, such as 'list all and file types'
must be commented out using the pound sign if they are to be included. alias ls 'ls' list all files alias la 'ls
-aF' list all and file types alias ld 'ls
-ld' list directories alias ll 'ls
-lF' list <dir> style alias lx 'ls
-lXB' sort by extension alias lk 'ls
-lSr' sort by size alias lc 'ls
-lcr' sort by change time alias lu 'ls
-lur' sort by access time alias lr 'ls
-lR' recursive ls alias lt 'ls
-ltr' sort by date alias lm 'ls
-al | more' pipe through 'more' alias . 'pwd' shows current directory alias .. 'cd ..' goes back one directory alias ../ 'cd ../' goes back one directory alias ... 'cd ../..' goes back two directories alias .../ 'cd ../../' goes back two directories alias
- 'cd
-' goes to previous directory alias / 'cd /' goes to the root directory ,, alias matlab '/Applications/MATLAB74/bin/maci/StartMATLAB.app/Contents/MacOS/StartMatlab' alias emacs22 '/Applications/Emacs.app/Contents/MacOS/Emacs'
,,, This will allow you to revert back to the original if the custom file does not work. , If this doesn't work, simply type csh at your prompt and repeat the previous step of sourcing your file. , -
Step 3: Install X11.
-
Step 4: Open your existing .cshrc file
-
Step 5: usually located in /Users/<your_user_name/.
-
Step 6: Copy the contents into a text file using TextEdit and save as custom_cshrc.txt.
-
Step 7: set your colors.
-
Step 8: You can customize these colors by changing the case (upper=bold
-
Step 9: lower=normal) and the actual color.
-
Step 10: The order of the attributes are as follows: directory symbolic link socket pipe executable block special character special executable with setuid bit set executable with setgid bit set directory writable to others
-
Step 11: with sticky bit directory writable to others
-
Step 12: without sticky bit
-
Step 13: The default is "exfxcxdxbxegedabagacad"
-
Step 14: blue foreground and default background for regular directories
-
Step 15: black foreground and red background for setuid executables
-
Step 16: Now set your aliases where 'alias' specifies that what follows will be an alias
-
Step 17: 'la' is what you want to call it and ' 'ls -aF' ' (this MUST be in single quotes) is the actual command.
-
Step 18: These are fun to play around with
-
Step 19: use whatever alias you like that you will remember.
-
Step 20: Finally
-
Step 21: alias your programs so you don't have to type out the entire path every time you want to call a program.
-
Step 22: These locations are dependent on where you install Matlab and Emacs
-
Step 23: these are simply default locations that the programs usually use to install.
-
Step 24: Now save your text file again and move it to /Users/<your_user_name>/
-
Step 25: Change the name of your original file from .cshrc to original_cshrc.txt
-
Step 26: Change the name of your custom file from custom_cshrc to .cshrc.
-
Step 27: To use this new startup file without restarting the program
-
Step 28: type source .cshrc.
-
Step 29: Your new custom modifications should now be set and working!
Detailed Guide
If it is different than the one listed above, these steps may not work or may need to be modified.
,, If you don't see it, use the list all function, ls
-a.
I would recommend using 'less' or 'more' to view the file so you don't make changes to the original file by accident. , If you haven't modified it, the only thing that should be in there is: set path = ( /sw/bin $path /abin /usr/local/bin) , setenv TERM xterm-color setenv CLICOLOR true setenv LSCOLORS ExDxHxAxCxegedabagacad , a black b red c green d brown e blue f magenta g cyan h light grey x default foreground or background ,,, Information beyond those characters, such as 'list all and file types'
must be commented out using the pound sign if they are to be included. alias ls 'ls' list all files alias la 'ls
-aF' list all and file types alias ld 'ls
-ld' list directories alias ll 'ls
-lF' list <dir> style alias lx 'ls
-lXB' sort by extension alias lk 'ls
-lSr' sort by size alias lc 'ls
-lcr' sort by change time alias lu 'ls
-lur' sort by access time alias lr 'ls
-lR' recursive ls alias lt 'ls
-ltr' sort by date alias lm 'ls
-al | more' pipe through 'more' alias . 'pwd' shows current directory alias .. 'cd ..' goes back one directory alias ../ 'cd ../' goes back one directory alias ... 'cd ../..' goes back two directories alias .../ 'cd ../../' goes back two directories alias
- 'cd
-' goes to previous directory alias / 'cd /' goes to the root directory ,, alias matlab '/Applications/MATLAB74/bin/maci/StartMATLAB.app/Contents/MacOS/StartMatlab' alias emacs22 '/Applications/Emacs.app/Contents/MacOS/Emacs'
,,, This will allow you to revert back to the original if the custom file does not work. , If this doesn't work, simply type csh at your prompt and repeat the previous step of sourcing your file. ,
About the Author
Janice Gordon
Creates helpful guides on lifestyle to inspire and educate readers.
Rate This Guide
How helpful was this guide? Click to rate: