GithubHelp home page GithubHelp logo

nick768 / mincmd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 35 KB

Mincmd is a commandline wrapper for Windows. It's based on Mintty and Conpty and adds some nice features to the Windows cmd (e. g. clink).

License: Apache License 2.0

AutoHotkey 100.00%
cmd mintty conpty windows clink

mincmd's Introduction

mincmd

Mincmd is a commandline wrapper for Windows. It's based on Mintty and Conpty and adds some nice features to the Windows cmd. Clink will be injected on every start to use autocompletion and command history.

What is it exactly?

Basically it is an AutoHotKey script which is used to create a mintty window with conpty wrapper and clink injected to cmd.exe. Furthermore it adds a way to configure aliases via scripts. They will be prepended to the PATH environment variable. For example:

Cygwin bash configuration:

--- Environment ---
cygwinDir=%HOMEDRIVE%\cygwin64\bin
appendPath=%cygwinDir%


--- Alias ---
name=bash
type=cmd
----- AliasScript_Start -----
@echo off
pushd "%cygwinDir%\.."
set "HOME=%cd%\home\%USERNAME%"
popd
"%cygwinDir%\bash" --login -i
----- AliasScript_Stop -----

As you can see you can add custom environment variables.

What it is not?

It's no cmd.exe replacement! It also does not work like conemu or cmder. It does not hook into Windows apis. But it can replace the default right-click-menu open commandprompt here action (when started as admin and configured correctly).

How to install?

Download the latest release of mincmd.exe and start it somewhere (you should start it in an empty folder which will be the home folder of mincmd). Wait a minute until it's ready (it should start immediatly after downloading needed components) and be happy!

How to configure?

mintty

You can configure the mintty window by right-clicking into it and choosing options. Here you can change the design and the window, keyboard and mouse behaviour.

clink

The clink configfile ("settings") will be created after starting mincmd for the first time. You can change it in the profile directory of mincmd.

mincmd

There is a configfile for mincmd called mincmd_settings.ini. You can change it in the profile directory. The default configfile is made to work on Windows 7 with cygwin installed. That means you can type bash and the cygwin bash opens. If you want to use the WSL bash instead you can go to the config file, which should look like this:

--- Settings ---
registerContextMenu=false


--- Environment ---
Zuerst Umgebungsvariablen definieren, bevor sie der PATH-Variable hinzugefügt werden können!
cygwinDir=C:\CygwinPortable\App\Runtime\cygwin\bin
prependPath=
appendPath=%cygwinDir%

Solange keine Gleichzeichen vorkommen, kann jede leere Zeile zum Kommentieren benutzt werden!


--- Alias ---
name=bash
type=cmd
----- AliasScript_Start -----
@echo off
pushd "%cygwinDir%\.."
set "HOME=%cd%\home\%USERNAME%"
popd
"%cygwinDir%\bash" --login -i
----- AliasScript_Stop -----

and change it to this:

--- Settings ---
registerContextMenu=false


--- Environment ---
Zuerst Umgebungsvariablen definieren, bevor sie der PATH-Variable hinzugefügt werden können!
prependPath=
appendPath=

Solange keine Gleichzeichen vorkommen, kann jede leere Zeile zum Kommentieren benutzt werden!


--- Alias ---

If you want to use the shift + right-click-menu shortcut, set registerContextMenu=false to registerContextMenu=true (not yet working properly). You can define your own environment variables after --- Environment ---. Set the prependPath or appendPath variable to add something to your PATH variable. You can also add variables set before. You can comment your configfile in every empty line. But you can't use equal signs in your comments. They would mess up your environment variables.

mincmd's People

Contributors

nick768 avatar

Watchers

 avatar

Forkers

dodorz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.