cmder設(shè)置打開時(shí)的默認(rèn)目錄

cmder設(shè)置打開時(shí)的默認(rèn)目錄
希望打開cmder自動(dòng)進(jìn)入工作目錄,怎么配置?

cmder的config目錄下有個(gè)user-profile.cmd文件,這里就是啟動(dòng)cmder時(shí)會(huì)自動(dòng)執(zhí)行的腳本,每次打開都會(huì)執(zhí)行

簡(jiǎn)單的加入切換到指定目錄:

:: use this file to run your own startup commands

:: use  in front of the command to prevent printing the command

:: uncomment this to have the ssh agent load when cmder starts

:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"

:: uncomment this next two lines to use pageant as the ssh authentication agent

:: SET SSH_AUTH_SOCK=/tmp/.ssh-pageant-auth-sock

:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-pageant.cmd"

:: you can add your plugins to the cmder path like so

:: set "PATH=%CMDER_ROOT%\vendor\whatever;%PATH%"

@D:
@cd D:\wamp64\www\tools

@echo off

另外,打開cmder安裝目錄下的 config\user-aliases.cmd文件,可以設(shè)置快捷方式,比如

st="D:\Sublime3\sublime_text.exe"  // 輸入st即可快捷地打開Sublime Text 3
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容