如题所述
ç®ç®ååç¾åä½ Mac os xçç»ç«¯é
è²
æ¥æºï¼æªç¥ ä½è ï¼winner æ¶é´ï¼2011-04-18 ã大 ä¸ å° æå°ã
Mac OS xè½ç¶æ¯ä»¥å¾å½¢çé¢åºåçï¼ä½æ¯ä½ä¸ºä¸ä¸ªç±»Unixç³»ç»ï¼è¿æ¯ç¦»ä¸å¼ç»ç«¯ï¼shellï¼çï¼å°¤å ¶æ¯å¯¹äºå¼å人åæ¥è¯´ï¼Mac OS xé»è®¤ç¶æçç»ç«¯ç»äººçæè§æ»æ¯ä¸é£ä¹èæï¼æ以å¾æå¿ è¦å¯¹å®è¿è¡ç¾åã
ä¸é¢è¿ä¸ªç»ç«¯é è²æä¹æ ·ï¼æ´æ¢äºé è²ï¼åä½ï¼ä¸åæ件类ååè²æ¾ç¤ºçå 容ï¼çèµ·æ¥è¦èæå¾å¤ï¼ä½è¿ä¸ªä¿®æ¹ä¹æ¯å¾å®¹æçï¼åªéè¦ä¸é¢å æ¥ï¼
1:éè¿ç»ç«¯å好设置ï¼éæ©é è²ååä½ã
æ使ç¨çé è²æ¹æ¡æ¯âHomebrewâï¼åä½ç¨çæ¯âMenlo Regular 14 ptâ
2:åé ç½®æ件ï¼ä¿®æ¹è·¯å¾ï¼æ示符é¢è²ï¼ä»¥åæå¼lså½ä»¤çé«äº®æ¾ç¤ºã
å¨ç¨æ·ä¸»ç®å½ä¸å»ºç«ä¸ä¸ªé ç½®æ件å³å¯ï¼
vi ./.bash_profile
ç¶ååå ¥ï¼æiè¿å ¥ç¼è¾æ¨¡å¼ï¼å¦ä¸é ç½®æ件ï¼
# for color
export CLICOLOR=1
# \h:\W \u\$
export PS1='\[\033[01;33m\]\u@\h\[\033[01;31m\] \W\$\[\033[00m\] '
# grep
alias grep='grep --color=always'
ä¿åéåºï¼æä¸escï¼è¿å ¥å½ä»¤æ¨¡å¼ï¼ç¶åè¾å ¥
wq
ç¶åéæ°æå¼shellå°±çå°å以ä¸æªå¾ä¸æ ·çé£æ ¼äºãç¾åMac os xçç»ç«¯é è²å¾ç®åå§ã
æ¥æºï¼æªç¥ ä½è ï¼winner æ¶é´ï¼2011-04-18 ã大 ä¸ å° æå°ã
Mac OS xè½ç¶æ¯ä»¥å¾å½¢çé¢åºåçï¼ä½æ¯ä½ä¸ºä¸ä¸ªç±»Unixç³»ç»ï¼è¿æ¯ç¦»ä¸å¼ç»ç«¯ï¼shellï¼çï¼å°¤å ¶æ¯å¯¹äºå¼å人åæ¥è¯´ï¼Mac OS xé»è®¤ç¶æçç»ç«¯ç»äººçæè§æ»æ¯ä¸é£ä¹èæï¼æ以å¾æå¿ è¦å¯¹å®è¿è¡ç¾åã
ä¸é¢è¿ä¸ªç»ç«¯é è²æä¹æ ·ï¼æ´æ¢äºé è²ï¼åä½ï¼ä¸åæ件类ååè²æ¾ç¤ºçå 容ï¼çèµ·æ¥è¦èæå¾å¤ï¼ä½è¿ä¸ªä¿®æ¹ä¹æ¯å¾å®¹æçï¼åªéè¦ä¸é¢å æ¥ï¼
1:éè¿ç»ç«¯å好设置ï¼éæ©é è²ååä½ã
æ使ç¨çé è²æ¹æ¡æ¯âHomebrewâï¼åä½ç¨çæ¯âMenlo Regular 14 ptâ
2:åé ç½®æ件ï¼ä¿®æ¹è·¯å¾ï¼æ示符é¢è²ï¼ä»¥åæå¼lså½ä»¤çé«äº®æ¾ç¤ºã
å¨ç¨æ·ä¸»ç®å½ä¸å»ºç«ä¸ä¸ªé ç½®æ件å³å¯ï¼
vi ./.bash_profile
ç¶ååå ¥ï¼æiè¿å ¥ç¼è¾æ¨¡å¼ï¼å¦ä¸é ç½®æ件ï¼
# for color
export CLICOLOR=1
# \h:\W \u\$
export PS1='\[\033[01;33m\]\u@\h\[\033[01;31m\] \W\$\[\033[00m\] '
# grep
alias grep='grep --color=always'
ä¿åéåºï¼æä¸escï¼è¿å ¥å½ä»¤æ¨¡å¼ï¼ç¶åè¾å ¥
wq
ç¶åéæ°æå¼shellå°±çå°å以ä¸æªå¾ä¸æ ·çé£æ ¼äºãç¾åMac os xçç»ç«¯é è²å¾ç®åå§ã
温馨提示:答案为网友推荐,仅供参考