V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
slowman
V2EX  ›  Windows

某个目录下右键打开cmder

  •  
  •   slowman · Dec 12, 2013 · 17330 views
    This topic created in 4521 days ago, the information mentioned may be changed or developed.
    @leohxj
    测试使用 http://bliker.github.io/cmder/
    的mini版,win8 64
    "C:\exe\"是我cmder文件夹所在目录,下面的自行修改
    "wenlong"是用户名
    0.打开cmder,右键设置,Integration,上面的点Register
    1.复制"C:\exe\cmder\config\ConEmu.xml"到
    "C:\Users\wenlong\AppData\Roaming\ConEmu.xml"
    2.修改"C:\Users\wenlong\AppData\Roaming\ConEmu.xml"491行为
    <value name="Cmd1" type="string" data="cmd /k C:\exe\cmder\vendor\init.bat -new_console:d:%USERPROFILE%"/>
    3.注册表搜索从头"conemu",定位到第一个
    Icon的值改为"C:\exe\cmder\icons\cmder.ico"
    command下改为"C:\exe\cmder\vendor\conemu-maximus5\ConEmu.exe" /cmd cmd /k C:\exe\cmder\vendor\init.bat -new_console:d:%USERPROFILE%"
    继续F3,逐个修改Icon,command下的应该不用动,自己会变

    已知问题:C盘根目录下右键打开cmder后当前目录是conemu.exe所在目录

    不确定写全了,不全的话中午再补吧



    10 replies    2017-10-16 20:16:49 +08:00
    ligyxy
        1
    ligyxy  
       Dec 12, 2013
    看起来非常实用!
    emric
        2
    emric  
       Dec 21, 2013
    http://gist.github.com/unmric/8067104
    楼主说的太晦涩了, 刚好最近我也在折腾...
    把上面的 Batchfile 放到 cmder 根目录, 双击!
    faith
        3
    faith  
       Mar 22, 2014
    @emric Cmder Here后 提示 找不到应用程序
    emric
        4
    emric  
       Mar 23, 2014
    @faith
    这个 batch 我会随着版本更新, 现在只能适用 1.2 以上版本.
    你可以把 cmder 更新到最新, 然后重新 clone, 再执行一次. (刚刚修复了一个小BUG)
    如果需要匹配 1.2 以下版本的, 你可以留一下邮箱待会发给你 ; )
    faith
        5
    faith  
       Mar 24, 2014   ❤️ 2
    @emric 找到好办法了,原来方法是很简单的:在 Cmder 目录直接运行
    cmder /register user
    或者
    cmder /register all
    至少图标的话,可以到注册表里添加。

    这种方法启动的不是ConEmu.exe,而是Cmder.exe
    emric
        6
    emric  
       Mar 25, 2014
    @faith 这个在 1.3 版本才添加的, 之前做这个是为了 1.2 以下版本, 顺便延续下去了.
    其实CMDER.EXE只是一个壳, 内在还是CONEMU.EXE.
    scratbai
        7
    scratbai  
       Mar 13, 2016
    @faith 这个方法好简单~
    leohxj
        8
    leohxj  
       Nov 19, 2016   ❤️ 1
    挖个坟, cmder 下可以使用

    ```
    cdmer /register user
    or
    cdmer /register all
    ```

    注册系统右键菜单。
    orangutan92
        9
    orangutan92  
       Oct 16, 2017
    @faith
    @leohxj
    这个方法好,只是怎么删除呢?
    orangutan92
        10
    orangutan92  
       Oct 16, 2017
    找到办法了,建立一个 bat 文件批处理即可
    @echo off
    Reg delete "HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder" /f
    pause
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1008 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 19:16 · PVG 03:16 · LAX 12:16 · JFK 15:16
    ♥ Do have faith in what you're doing.