Mac setting environment variables and using the CVS command line:
Set environment variables at the command line:
bogon:~ yanfa$cvsroot=:p Server:username@serveraddress:/home/cvsroot
bogon:~ Yanfa$export Cvsroot
However, this is only valid for the current shell, and if you restart the shell, you must set the environment variable again. The way to make it permanent is:
bogon:~ yanfa$ Vim ~/.bash_profile
Enter Export cvsroot=:p server:username@192.168.0.100:/home/cvsroot
Press ESC and then: Wq Save quit Vim
Let the configuration take effect:
bogon:~ yanfa$ Source ~/.bash_profile
Then CVS login enters the password and logs on to the CVS server.
Get code:
CVS Co directory name (this should be known beforehand)
To commit the modified code:
CVS Commit directory Name
Import all directories and files in the current directory into the warehouse:
CVS Import-m the name on the log message server (preferably the same as the current directory name) anyname1 anyname2
Change Directory Name
How the Mac system displays and hides files
command to display Mac hidden files: Defaults write Com.apple.finder appleshowallfiles YES
To hide a mac hidden file command: Defaults write Com.apple.finder appleshowallfiles NO
After you've finished, click Enter to exit the terminal and restart the finder.
Restart Finder: Mouse click the Apple flag in the top left corner of the window--> Force exit-->finder--> reboot
Turn from: http://hi.baidu.com/shui_lin/item/1faa1455e5884c3795eb05e2