From ef9bbdab6ae03bd3109ab26f633e68cd5729dc27 Mon Sep 17 00:00:00 2001 From: Samuel Vasko Date: Tue, 9 Jul 2013 09:43:50 +0200 Subject: [PATCH] Initial commit --- .gitignore | 6 + Readme.md | 30 +++ bin/alias.bat | 2 + cmder.lnk | Bin 0 -> 1291 bytes lib/init.bat | 20 ++ usr/.history | 0 usr/ConEmu.xml | 552 +++++++++++++++++++++++++++++++++++++++++++++++++ usr/aliases | 1 + usr/settings | 43 ++++ 9 files changed, 654 insertions(+) create mode 100644 .gitignore create mode 100644 Readme.md create mode 100644 bin/alias.bat create mode 100644 cmder.lnk create mode 100644 lib/init.bat create mode 100644 usr/.history create mode 100644 usr/ConEmu.xml create mode 100644 usr/aliases create mode 100644 usr/settings diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a2b62c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ + +## Those files should be taken from their repositary + +lib/* +!lib/*.md +!lib/*.bat \ No newline at end of file diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..0e5503c --- /dev/null +++ b/Readme.md @@ -0,0 +1,30 @@ +# Cmder + +Cmder is a package created out of pure frustration over obsence of usable console emulator on Windows. It is based on [ConEmu](https://code.google.com/p/conemu-maximus5/) with *major* config overhaul. Monokai color scheme, amazing [clink](https://code.google.com/p/clink/) and custom prompt layout. + +## Why use it + +The main advantage of Cmder is portablibity. It is designed to be totaly self-container. With no external dependencies. That makes is great for **USB Sticks** or **Dropbox**. So you can carry your console, aliases and binaries (like wget, curl and git) with you anywhere. + +## Keyboard shortcuts + +### Tab manipulation + +* `Ctrl + t` : new tab dialog (maybe you want to open cmd as admin?) +* `Ctrl + w` : close tab +* `Ctrl + alt + number` : fast new tab: `1` - CMD, `2` - Powershell `*` - More to come +* `Alt + enter`: Fullscreen + +### Shell + +* `Shift + Up` : Traverse up in directory structure (lovely feature!) +* `End, Home, ctrl` : Traversing text wih as ususal on Windows +* `Ctrl + r` : History search +* `Shift + mouse` : Select and copy text from buffer + +(Some shortcuts are not yet documented, thought they exist, please add them here) + + +## Todo + +1. Write a Todo list diff --git a/bin/alias.bat b/bin/alias.bat new file mode 100644 index 0000000..88770c6 --- /dev/null +++ b/bin/alias.bat @@ -0,0 +1,2 @@ +@echo off +echo %* >> ../usr/aliases diff --git a/cmder.lnk b/cmder.lnk new file mode 100644 index 0000000000000000000000000000000000000000..d6ab9237e9ea79c01efc4944322ec17fa67ca7f0 GIT binary patch literal 1291 zcmbtTOGs2v82)Bb(6XFKdmud|$Sl!j)TU7g?2Zq@fkY7$E@3lHG0lu)a}{(Exaei2 zHib|G(xMkq&_-JHz>SL*i3C$55h1mxh{>JwqVK{*)<-m6L=K9ne}4b=`@No7OIqS#V(|6xS&QwgU5~UF@#a`(@xrNF2_^4}4gN@X zAO<(tvXFe1P(EE2{~kunBxS9U)m#ogBIrf{F}e!TXmU-)Z3qW_s5Y7M;|XOlE=QtgJ4Rvx55_Ab=ubnAnn9A+nrs6GsT?xiIzH zlS4L2cxu&lEfCXGpoFGWUnqY4vqDuB@1f>~*76pQ5eHv57z)JH`hXVdi}tGe@u+O9 zYP2OK^xbSi1-ELnQAK9K%dK?zT};a2Zgv>iQ>n^({VDtWyZNbaV++lvo3AgO%ATnI zy*2mTjrj$8Je-4FzshF*HQ&YE<&ysa`J8PnZH~pAkCIJAw%d!=u1gbN?(e35wdC4P ztRXT>P8TWj5||~51m+P3(aT?U>c>&^QObb>8;E=Ybut7${*ad-PFbYSrk{a0*NL-E zhSVDob%c;&7cO)(KJmIekAD_iEx8t%JxRY=!(JL~JZLAekEqnOD(X(SXt_{DZ9hke zaq$s2P{ZGtchOr#%R#$_SEZWLO-QVRzwsQI0%r&*=BwlBya&TgcbDc0ZfVDM1nKXV z0BJ}Wk=eOol+v!{RcME%zf6s~Pj6R9w^h_rY6!7)Q8rS|c*W@pBt192aSAEo&Iy0% mf$^92saKdj{ATmqApP4UM2e^;{y*vRd%E1pybzMr`2GNNM*{W$ literal 0 HcmV?d00001 diff --git a/lib/init.bat b/lib/init.bat new file mode 100644 index 0000000..4a93e37 --- /dev/null +++ b/lib/init.bat @@ -0,0 +1,20 @@ +@echo off + +:: Set prompt style +prompt $E[1;32;40m$P $_$E[1;30;40m$$ $E[0m + +:: Pick right version of clink +if "%PROCESSOR_ARCHITECTURE%"=="x86" ( + set architecture=86 +) else ( + set architecture=64 +) + +:: Run clink +lib\clink\clink_x%architecture%.exe inject --quiet --profile usr + +:: Enhance Path +PATH=%PATH%;%CD%\bin + +:: cd into users homedir +cd /d "%userprofile%" \ No newline at end of file diff --git a/usr/.history b/usr/.history new file mode 100644 index 0000000..e69de29 diff --git a/usr/ConEmu.xml b/usr/ConEmu.xml new file mode 100644 index 0000000..048c401 --- /dev/null +++ b/usr/ConEmu.xml @@ -0,0 +1,552 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/usr/aliases b/usr/aliases new file mode 100644 index 0000000..c40ef09 --- /dev/null +++ b/usr/aliases @@ -0,0 +1 @@ +e.=explorer . diff --git a/usr/settings b/usr/settings new file mode 100644 index 0000000..93de0be --- /dev/null +++ b/usr/settings @@ -0,0 +1,43 @@ +# name: Ctrl-D exits +# type: bool +# Ctrl-D exits the process when it is pressed on an empty line. +ctrld_exits = 1 + +# name: Ctrl-C raises exception +# type: bool +# When Ctrl-C is pressed Clink will pass it thourgh to the parent by raising the +# appropriate exception. +passthrough_ctrlc = 1 + +# name: Esc clears line +# type: bool +# Clink clears the current line when Esc is pressed (unless Readline's Vi mode +# is enabled). +esc_clears_line = 1 + +# name: Match display colour +# type: int +# Colour to use when displaying matches. A value less than 0 will be the +# opposite brightness of the default colour. +match_colour = -1 + +# name: Executable match style +# type: enum +# Changes how Clink will match executables when there is no path separator on +# the line. 0 = PATH only, 1 = PATH and CWD, 2 = PATH, CWD, and directories. In +# all cases both executables and directories are matched when there is a path +# separator present. +exec_match_style = -1 + +# name: Prompt colour +# type: int +# Surrounds the prompt in ANSI escape codes to set the prompt's colour. Disabled +# when the value is less than 0. +prompt_colour = -1 + +# name: Auto-answer terminate prompt +# type: enum +# Automatically answers cmd.exe's 'Terminate batch job (Y/N)?' prompts. 0 = +# disabled, 1 = answer 'Y', 2 = answer 'N'. +terminate_autoanswer = 0 +