鍍金池/ 問答/iOS/ mac terminal alias問題

mac terminal alias問題

我想設(shè)置永久alias,在~/目錄下新建.bashrc文件,輸入alias cdhome = 'cd ~/',
執(zhí)行source .bashrc,顯示
-bash: alias: cdhome: not found
-bash: alias: =: not found
-bash: alias: cd ~/: not found

而且~/目錄下也沒有/bin文件夾,如何建立淺鏈接

回答
編輯回答
若相惜

= 兩邊不要加空格,這和 shell 的變量定義是一樣的

2017年3月5日 16:08