Skip to content

Instantly share code, notes, and snippets.

@ThatRendle
Created November 25, 2010 17:31
Show Gist options
  • Select an option

  • Save ThatRendle/715674 to your computer and use it in GitHub Desktop.

Select an option

Save ThatRendle/715674 to your computer and use it in GitHub Desktop.

Revisions

  1. ThatRendle revised this gist Nov 26, 2010. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion TabEntryForConsole.xml
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,8 @@
    <tab title="Git Bash" use_default_icon="0">
    <console shell="&quot;C:\Program Files\Git\bin\sh.exe&quot; --login -i" init_dir="%HOMEDRIVE%%HOMEPATH%" run_as_user="0" user=""/>
    <console shell="&quot;C:\Program Files\Git\bin\sh.exe&quot; --login -i"
    init_dir="%HOMEDRIVE%%HOMEPATH%"
    run_as_user="0"
    user=""/>
    <cursor style="0" r="255" g="255" b="255"/>
    <background type="0" r="0" g="0" b="0">
    <image file="" relative="0" extend="0" position="0">
  2. ThatRendle revised this gist Nov 26, 2010. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion about.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    Console2 is awesome, and makes working with the command line on Windows much easier.

    The problem I had was that when I used the "Git Bash Here" item on Windows Explorer context menus, it was using the standard command prompt shell. I tracked down the VBS script that is used by the menu item, and modified it to launch Console2 with the Git Bash settings instead. Below is the modified VBS script and the Git Bash tab section from my console.xml file. Obviously path names may vary.
    The problem I had was that when I used the "Git Bash Here" item on Windows Explorer context menus,
    it was using the standard command prompt shell. I tracked down the VBS script that is used by the
    menu item, and modified it to launch Console2 with the Git Bash settings instead. Below is the
    modified VBS script and the Git Bash tab section from my console.xml file.
    Obviously path names may vary.
  3. ThatRendle revised this gist Nov 26, 2010. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions about.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    Console2 is awesome, and makes working with the command line on Windows much easier.

    The problem I had was that when I used the "Git Bash Here" item on Windows Explorer context menus, it was using the standard command prompt shell. I tracked down the VBS script that is used by the menu item, and modified it to launch Console2 with the Git Bash settings instead. Below is the modified VBS script and the Git Bash tab section from my console.xml file. Obviously path names may vary.
  4. ThatRendle renamed this gist Nov 25, 2010. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. ThatRendle created this gist Nov 25, 2010.
    9 changes: 9 additions & 0 deletions ConsoleEntry.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <tab title="Git Bash" use_default_icon="0">
    <console shell="&quot;C:\Program Files\Git\bin\sh.exe&quot; --login -i" init_dir="%HOMEDRIVE%%HOMEPATH%" run_as_user="0" user=""/>
    <cursor style="0" r="255" g="255" b="255"/>
    <background type="0" r="0" g="0" b="0">
    <image file="" relative="0" extend="0" position="0">
    <tint opacity="0" r="0" g="0" b="0"/>
    </image>
    </background>
    </tab>
    6 changes: 6 additions & 0 deletions Git Bash.vbs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    Set AppObj = CreateObject("Shell.Application")
    If WScript.Arguments.Length=1 Then
    AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash"" -d """ & WScript.Arguments(0) & """"
    Else
    AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash"""
    End If