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