cmderは、開くときにデフォルトのディレクトリを設定します



Cmder Sets Default Directory When Opening



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%vendorwhatever%PATH%' @D: @cd D:wamp64www ools

さらに、cmderインストールディレクトリの config user-aliases.cmdファイルを開いて、次のようなショートカットを設定します。

st='D:Sublime3sublime_text.exe' //Enter st to quickly open Sublime Text 3 w=cd /d D:/wamp64/www //Entering w will automatically jump to the D:/wamp64/www/ directory ..=cd .. //Enter: quickly return to the previous folder