cmder设置打开时的默认目录

cmder设置打开时的默认目录

希望打开cmder自动进入工作目录,怎么配置?

cmder的config目录下有个user-profile.cmd文件,这里就是启动cmder时会自动执行的脚本,每次打开都会执行

简单的加入切换到指定目录:
:: 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

另外,打开cmder安装目录下的\config\user-aliases.cmd文件,可以设置快捷方式,比如

st="D:\Sublime3\sublime_text.exe"  //输入st即可快捷地打开Sublime Text 3
w=cd /d D:/wamp64/www   //输入w会自动跳转到D:/wamp64/www/目录
..=cd ..         //输入..快捷返回上一级文件夹
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值