Skip to content

Instantly share code, notes, and snippets.

@diewland
Created December 26, 2018 17:30
Show Gist options
  • Save diewland/a5f30e20067e8226b243c27b139219dd to your computer and use it in GitHub Desktop.
Save diewland/a5f30e20067e8226b243c27b139219dd to your computer and use it in GitHub Desktop.
Cmder, set default working dir ( ./config/user_profile.cmd )
:: 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" /k exit
:: uncomment the 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%"
:: arguments in this batch are passed from init.bat, you can quickly parse them like so:
:: more useage can be seen by typing "cexec /?"
:: %ccall% "/customOption" "command/program"
@echo off
:: set default path of c -> c:/
cd /d C:\
:: set default path of d -> d:/
cd /d D:\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment