Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to create alias for ConEmu? Also in linux, bash terminal have .bashrc file, what is similar to ConEmu?

Thanks

share|improve this question
    
I believe that aliases must be supported by your shell rather than terminal. E.g. mentioned .bashrc belong to bash (shell) but not terminal. And you may use bash with ConEmu too. –  Maximus Feb 23 '13 at 14:19
    
Yes your are right. Sorry for this. Actually I am on window. Can you please help me out how to create this on window cmd (which I now think will be used by conemu). –  dearvivekkumar Feb 23 '13 at 14:36
    
If powershell is an option, you can define aliases in your profile file –  kbsou Feb 23 '13 at 17:04

2 Answers 2

up vote 4 down vote accepted

You may use doskey for creating aliases. Next example supposed your installation folder is C:\Program Files\ConEmu) and your shell is cmd.exe.

Create following batch file C:\Program Files\ConEmu\ConEmu\aliases.cmd:

@echo off
doskey /EXENAME=cmd.exe cdd=cd /d $1

Start your shell in ConEmu as followed (for example, Settings -> Startup -> Command line):

cmd /k "%ConEmuBaseDir%\aliases.cmd"

Now you may type in prompt something like this

cdd D:\AnyFolder
share|improve this answer

You could use TCC/LE with ConEmu. It's a free cmd.exe replacement and, unlike Powershell, is backward compatible. You can use the ALIAS command to create and manage aliases and TCSTART to do a similar thing .bashrc does.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.