命令列下切換常用子目錄 - MAC

By Carolina Franco
at 2015-06-27T11:21
at 2015-06-27T11:21
Table of Contents
如題,命令列下切換常用子目錄
從前 dos 時代是有人出過這種小工具的,所以有這需求似乎不用交代
我的狀況是公司的專案,放置的子目錄深度很深
目前的做法: 打開繪圖介面的 finder,慢慢找到內部子目錄,然後按滑鼠右鍵開命令列
但我自己習慣的做法是用專案名打個批次檔
比如 iLife 專案:
touch iLife //建檔
open -a TextEdit iLife //文字編輯檔案
cd /project/iLife //只打一行,切換子目錄;存檔退出
chmod a+x iLife //改變為可執行屬性
iLife //執行,神奇的是不會切換子目錄
. iLife //用另一種方式執行,可以了!!
以上,想請教的是用 . 去執行就可以,怎麼會這樣?
另外這似乎是比較偏命令列的討論,如果跑錯板尚請告知,謝謝
--
Tags:
MAC
All Comments

By Ula
at 2015-06-30T14:44
at 2015-06-30T14:44

By Audriana
at 2015-07-02T21:49
at 2015-07-02T21:49

By Carol
at 2015-07-03T17:10
at 2015-07-03T17:10

By Bethany
at 2015-07-08T13:08
at 2015-07-08T13:08

By Mason
at 2015-07-10T23:34
at 2015-07-10T23:34

By Annie
at 2015-07-12T13:35
at 2015-07-12T13:35

By Jack
at 2015-07-15T13:17
at 2015-07-15T13:17

By Ophelia
at 2015-07-19T12:13
at 2015-07-19T12:13

By Franklin
at 2015-07-21T00:57
at 2015-07-21T00:57

By Mia
at 2015-07-24T16:39
at 2015-07-24T16:39

By Frederica
at 2015-07-24T21:20
at 2015-07-24T21:20

By Wallis
at 2015-07-25T05:37
at 2015-07-25T05:37
Related Posts
MBP蓋起來充電線接著隔天打開是燙的

By Necoo
at 2015-06-27T10:26
at 2015-06-27T10:26
移除字體預覽程式無限迴圈

By Ivy
at 2015-06-27T01:52
at 2015-06-27T01:52
CAPS LOCK 偶爾不靈敏

By Aaliyah
at 2015-06-27T01:24
at 2015-06-27T01:24
MacBook 2014

By Freda
at 2015-06-27T01:19
at 2015-06-27T01:19
back to school版本

By Margaret
at 2015-06-27T01:11
at 2015-06-27T01:11