Conemu notes

From raju

favorite configuration

run git bash terminal

step 1: git bash set up

    task name = Bash::Git bash
    Default task for new console = check
    Taskbar jump lists = check
    Default shell (Win+x) = check
    Task parameters: leave empty
    commands: 
    "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i
    


step 1 (old, deleteafter): Add a task

    Right click on the window title bar -> Settings -> Startup -> Tasks
    click the '+' button
    Set the title to Git
    Default task for new console -> check
    Task parameters = /DIR "C:\Users\kkusuman"
    Commands - "C:\Program Files\Git\Git Gui\bin\bash.exe" --login -i
    Move the {Git} task to the top by repeatedly clicking on the "Up" button
    Save settings
    

In the above, change the title, start directory, bash path accordingly.

step 2: Set up "git bash" like colors

    In the Settings window ->
    Features -> Colors -> Schemes -> <xterm> -> Save settings
    

step 3: Auto restore previous session

    In the Settings window ->
    Startup -> Auto save/restore opened tabs -> select -> Save settings
    

step 4: unbind ctrl-v

By default ctrl-v is bound to "Paste first line of clipboard contents, autoconvert paths for cygwin's appllications (ignored in Far)". This messes up with vim which uses ctrl-v to enter into visual mode.

    Settings -> Keys & Macro -> unbind Ctrl-v
    

auto restore current working directory

Add the following lines to ~/.bashrc

    if [[ -n "${ConEmuPID}" ]]; then
      PROMPT_COMMAND='ConEmuC -StoreCWD'
    fi
    

Tested with: conemu build 151101, git bash 2.18.0, Windows 7.

Solution is specific to | conemu + git bash + win 7 . For other configurations, see https://conemu.github.io/en/ShellWorkDir.html

See also :-

tags | auto save, restore, preserve current working directory after restarting a conemu session


dummy

useful keyboard shortcuts

  • move to next tab - win+shift+q, previous tab - win+q
  • new console tab - win+x
  • rename tab - apps+r
  • move tab to right - win+alt+right, to left - win+alt+keft
  • move between tabs - ctrl+tab

useful links