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/

29 Steps 2 min read Advanced

Step-by-Step Guide

  1. 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.
  2. 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. ,
  3. Step 3: Install X11.

  4. Step 4: Open your existing .cshrc file

  5. Step 5: usually located in /Users/<your_user_name/.

  6. Step 6: Copy the contents into a text file using TextEdit and save as custom_cshrc.txt.

  7. Step 7: set your colors.

  8. Step 8: You can customize these colors by changing the case (upper=bold

  9. Step 9: lower=normal) and the actual color.

  10. 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

  11. Step 11: with sticky bit directory writable to others

  12. Step 12: without sticky bit

  13. Step 13: The default is "exfxcxdxbxegedabagacad"

  14. Step 14: blue foreground and default background for regular directories

  15. Step 15: black foreground and red background for setuid executables

  16. Step 16: Now set your aliases where 'alias' specifies that what follows will be an alias

  17. Step 17: 'la' is what you want to call it and ' 'ls -aF' ' (this MUST be in single quotes) is the actual command.

  18. Step 18: These are fun to play around with

  19. Step 19: use whatever alias you like that you will remember.

  20. Step 20: Finally

  21. Step 21: alias your programs so you don't have to type out the entire path every time you want to call a program.

  22. Step 22: These locations are dependent on where you install Matlab and Emacs

  23. Step 23: these are simply default locations that the programs usually use to install.

  24. Step 24: Now save your text file again and move it to /Users/<your_user_name>/

  25. Step 25: Change the name of your original file from .cshrc to original_cshrc.txt

  26. Step 26: Change the name of your custom file from custom_cshrc to .cshrc.

  27. Step 27: To use this new startup file without restarting the program

  28. Step 28: type source .cshrc.

  29. 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

J

Janice Gordon

Creates helpful guides on lifestyle to inspire and educate readers.

27 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: