摘要: /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置.英文描述为:# /etc/profile# System wide environment and startup programs,... 阅读全文
posted @ 2015-07-31 23:27 chunchill 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 本人补充:mac版git下载地址:http://code.google.com/p/git-osx-installer/downloads/list?can=3&q=&sort=-uploaded&colspec=Filename+Summary+Uploaded+Size+DownloadCoun... 阅读全文
posted @ 2015-07-31 23:22 chunchill 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: mac 一般使用bash作为默认shellMac系统的环境变量,加载顺序为:/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc当然/etc/profile和/etc/paths是系统级别的,系统启动就会... 阅读全文
posted @ 2015-07-31 23:14 chunchill 阅读(246635) 评论(2) 推荐(8) 编辑
摘要: (1)首先要知道你使用的Mac OS X是什么样的Shell,使用命令echo $SHELL如果输出的是:csh或者是tcsh,那么你用的就是C Shell。如果输出的是:bash,sh,zsh,那么你的用的可能就是Bourne Shell的一个变种。Mac OS X 10.2之前默认的是C She... 阅读全文
posted @ 2015-07-31 23:06 chunchill 阅读(1946) 评论(0) 推荐(0) 编辑