mirror of
https://github.com/cmderdev/cmder.git
synced 2025-07-17 04:59:09 +08:00
Compare commits
11 Commits
v1.0.0-bet
...
v1.0.0
Author | SHA1 | Date | |
---|---|---|---|
a516858048 | |||
4dc1065399 | |||
eaa78c6bf3 | |||
2521097f72 | |||
3704ff3e2e | |||
c2c0e1c3aa | |||
ec5f8f9808 | |||
aefb0f2709 | |||
2cceaaef23 | |||
2c0a6d095f | |||
e38aded028 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,4 +3,5 @@
|
|||||||
|
|
||||||
vendor/*
|
vendor/*
|
||||||
!vendor/*.md
|
!vendor/*.md
|
||||||
!vendor/*.bat
|
!vendor/*.bat
|
||||||
|
config/.history
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
@echo off
|
@echo off
|
||||||
start vendor/ConEmu/ConEmu.exe /Title Cmder /LoadCfgFile ../../config/ConEmu.xml
|
start vendor/conemu-maximus5/ConEmu.exe /Title Cmder /LoadCfgFile ../../config/ConEmu.xml
|
@ -8,7 +8,7 @@ Cmder is a **software package** created out of pure frustration over absence of
|
|||||||
|
|
||||||
## Why use it
|
## Why use it
|
||||||
|
|
||||||
The main advantage of Cmder is portablibity. It is designed to be totally 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.
|
The main advantage of Cmder is portability. It is designed to be totally 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.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -74,4 +74,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
70
build_cmder.rb
Normal file
70
build_cmder.rb
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# Samuel Vasko 2013
|
||||||
|
# Cmder build script
|
||||||
|
# Like really a beta
|
||||||
|
#
|
||||||
|
# This script downloads dependencies form google code. Each software is extracted
|
||||||
|
# in a folder with same name as the project on google code. So Conemu becomes
|
||||||
|
# conemu-maximus5. Correct files are beeing picked by using labels.
|
||||||
|
# I will move the script for getting files by labels from php to here as soon I feel like it
|
||||||
|
|
||||||
|
require 'FileUtils'
|
||||||
|
|
||||||
|
def get_file project, query
|
||||||
|
# Should be changed to integrated downloader
|
||||||
|
urlToFile = 'wget -q -O - "http://samuelvasko.tk/gcode/?project='+project+'&query='+query+'"'
|
||||||
|
urlToFile = `#{urlToFile}`
|
||||||
|
urlToFile = urlToFile.split("\n").first
|
||||||
|
|
||||||
|
extension = urlToFile.split('.').last
|
||||||
|
filename = project+'.'+extension
|
||||||
|
|
||||||
|
puts "\n ------ Downloading #{project} ------- \n \n"
|
||||||
|
get_file = system("wget -O #{filename} #{urlToFile}")
|
||||||
|
|
||||||
|
unless get_file
|
||||||
|
puts "Failied to download #{project} from #{urlToFile}"
|
||||||
|
FileUtils.rm(filename) if File.exists?(filename)
|
||||||
|
exit(1)
|
||||||
|
end
|
||||||
|
|
||||||
|
system("7z x -o\"#{project}\" #{filename}")
|
||||||
|
|
||||||
|
File.unlink(project+"."+extension);
|
||||||
|
|
||||||
|
# When the folder contains another folder
|
||||||
|
# that is not what we want
|
||||||
|
if Dir.glob("#{project}/*").length == 1
|
||||||
|
temp_name = "#{project}_temp"
|
||||||
|
FileUtils.mv(project, temp_name)
|
||||||
|
FileUtils.mv(Dir.glob("#{temp_name}/*")[0], project)
|
||||||
|
FileUtils.rm_r(temp_name)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
puts '
|
||||||
|
______ _ _ _ _ _
|
||||||
|
| ___ \ (_) | | (_) | |
|
||||||
|
| |_/ /_ _ _| | __| |_ _ __ __ _ ___ _ __ ___ __| | ___ _ __
|
||||||
|
| ___ \ | | | | |/ _` | | \'_ \ / _` | / __| \'_ ` _ \ / _` |/ _ \ \'__|
|
||||||
|
| |_/ / |_| | | | (_| | | | | | (_| | | (__| | | | | | (_| | __/ |
|
||||||
|
\____/ \__,_|_|_|\__,_|_|_| |_|\__, | \___|_| |_| |_|\__,_|\___|_|
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
'
|
||||||
|
|
||||||
|
puts 'Cleanup'
|
||||||
|
|
||||||
|
if Dir.exists?('vendor')
|
||||||
|
Dir.glob('vendor/*') { |file| FileUtils.rm_rf(file) if File.directory?(file) }
|
||||||
|
end
|
||||||
|
|
||||||
|
Dir.chdir('vendor')
|
||||||
|
|
||||||
|
puts 'Getting files'
|
||||||
|
|
||||||
|
get_file('clink', 'label:Type-Archive label=Featured')
|
||||||
|
get_file('conemu-maximus5', 'label:Type-Archive label=Preview label=Featured')
|
||||||
|
get_file('msysgit', 'label:Type-Archive label:Featured')
|
||||||
|
|
||||||
|
puts 'Done, bye'
|
@ -1 +0,0 @@
|
|||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<key name="Software">
|
<key name="Software">
|
||||||
<key name="ConEmu">
|
<key name="ConEmu">
|
||||||
<key name=".Vanilla" modified="2013-07-16 16:32:45">
|
<key name=".Vanilla" modified="2013-09-07 17:36:51">
|
||||||
<value name="ColorTable00" type="dword" data="00222827"/>
|
<value name="ColorTable00" type="dword" data="00222827"/>
|
||||||
<value name="ColorTable01" type="dword" data="009e5401"/>
|
<value name="ColorTable01" type="dword" data="009e5401"/>
|
||||||
<value name="ColorTable02" type="dword" data="0004aa74"/>
|
<value name="ColorTable02" type="dword" data="0004aa74"/>
|
||||||
@ -125,10 +125,10 @@
|
|||||||
<value name="UseCurrentSizePos" type="hex" data="01"/>
|
<value name="UseCurrentSizePos" type="hex" data="01"/>
|
||||||
<value name="WindowMode" type="dword" data="0000051f"/>
|
<value name="WindowMode" type="dword" data="0000051f"/>
|
||||||
<value name="ConWnd Width" type="dword" data="0000006f"/>
|
<value name="ConWnd Width" type="dword" data="0000006f"/>
|
||||||
<value name="ConWnd Height" type="dword" data="00000026"/>
|
<value name="ConWnd Height" type="dword" data="0000001a"/>
|
||||||
<value name="Cascaded" type="hex" data="01"/>
|
<value name="Cascaded" type="hex" data="01"/>
|
||||||
<value name="ConWnd X" type="dword" data="00000108"/>
|
<value name="ConWnd X" type="dword" data="0000008e"/>
|
||||||
<value name="ConWnd Y" type="dword" data="000000c1"/>
|
<value name="ConWnd Y" type="dword" data="00000037"/>
|
||||||
<value name="16bit Height" type="dword" data="00000000"/>
|
<value name="16bit Height" type="dword" data="00000000"/>
|
||||||
<value name="AutoSaveSizePos" type="hex" data="00"/>
|
<value name="AutoSaveSizePos" type="hex" data="00"/>
|
||||||
<value name="IntegralSize" type="hex" data="00"/>
|
<value name="IntegralSize" type="hex" data="00"/>
|
||||||
@ -249,7 +249,7 @@
|
|||||||
<value name="StatusBar.Hide.Proc" type="hex" data="00"/>
|
<value name="StatusBar.Hide.Proc" type="hex" data="00"/>
|
||||||
<value name="StatusBar.Hide.Title" type="hex" data="01"/>
|
<value name="StatusBar.Hide.Title" type="hex" data="01"/>
|
||||||
<value name="StatusBar.Hide.Resize" type="hex" data="00"/>
|
<value name="StatusBar.Hide.Resize" type="hex" data="00"/>
|
||||||
<value name="Tabs" type="hex" data="02"/>
|
<value name="Tabs" type="hex" data="01"/>
|
||||||
<value name="TabsLocation" type="hex" data="01"/>
|
<value name="TabsLocation" type="hex" data="01"/>
|
||||||
<value name="TabSelf" type="hex" data="01"/>
|
<value name="TabSelf" type="hex" data="01"/>
|
||||||
<value name="TabLazy" type="hex" data="01"/>
|
<value name="TabLazy" type="hex" data="01"/>
|
||||||
@ -329,7 +329,7 @@
|
|||||||
<value name="Update.CheckOnStartup" type="hex" data="01"/>
|
<value name="Update.CheckOnStartup" type="hex" data="01"/>
|
||||||
<value name="Update.CheckHourly" type="hex" data="00"/>
|
<value name="Update.CheckHourly" type="hex" data="00"/>
|
||||||
<value name="Update.ConfirmDownload" type="hex" data="01"/>
|
<value name="Update.ConfirmDownload" type="hex" data="01"/>
|
||||||
<value name="Update.UseBuilds" type="hex" data="02"/>
|
<value name="Update.UseBuilds" type="hex" data="01"/>
|
||||||
<value name="Update.UseProxy" type="hex" data="00"/>
|
<value name="Update.UseProxy" type="hex" data="00"/>
|
||||||
<value name="Update.Proxy" type="string" data=""/>
|
<value name="Update.Proxy" type="string" data=""/>
|
||||||
<value name="Update.ProxyUser" type="string" data=""/>
|
<value name="Update.ProxyUser" type="string" data=""/>
|
||||||
@ -483,16 +483,16 @@
|
|||||||
<value name="DndLKey" type="hex" data="00"/>
|
<value name="DndLKey" type="hex" data="00"/>
|
||||||
<value name="DndRKey" type="hex" data="a2"/>
|
<value name="DndRKey" type="hex" data="a2"/>
|
||||||
<value name="WndDragKey" type="dword" data="00121101"/>
|
<value name="WndDragKey" type="dword" data="00121101"/>
|
||||||
<key name="Tasks" modified="2013-07-16 16:32:45">
|
<key name="Tasks" modified="2013-09-07 17:36:51">
|
||||||
<value name="Count" type="dword" data="00000002"/>
|
<value name="Count" type="dword" data="00000002"/>
|
||||||
<key name="Task1" modified="2013-07-16 16:32:45">
|
<key name="Task1" modified="2013-09-07 17:36:51">
|
||||||
<value name="Name" type="string" data="{cmd}"/>
|
<value name="Name" type="string" data="{cmd}"/>
|
||||||
<value name="GuiArgs" type="string" data=" /icon "cmd.exe""/>
|
<value name="GuiArgs" type="string" data=" /icon "cmd.exe""/>
|
||||||
<value name="Cmd1" type="string" data="cmd /k vendor\init.bat"/>
|
<value name="Cmd1" type="string" data="cmd /k vendor\init.bat"/>
|
||||||
<value name="Active" type="dword" data="00000000"/>
|
<value name="Active" type="dword" data="00000000"/>
|
||||||
<value name="Count" type="dword" data="00000001"/>
|
<value name="Count" type="dword" data="00000001"/>
|
||||||
</key>
|
</key>
|
||||||
<key name="Task2" modified="2013-07-16 16:32:45">
|
<key name="Task2" modified="2013-09-07 17:36:51">
|
||||||
<value name="Name" type="string" data="{PowerShell}"/>
|
<value name="Name" type="string" data="{PowerShell}"/>
|
||||||
<value name="GuiArgs" type="string" data="/dir "%userprofile%""/>
|
<value name="GuiArgs" type="string" data="/dir "%userprofile%""/>
|
||||||
<value name="Cmd1" type="string" data="powershell"/>
|
<value name="Cmd1" type="string" data="powershell"/>
|
||||||
@ -500,11 +500,11 @@
|
|||||||
<value name="Count" type="dword" data="00000001"/>
|
<value name="Count" type="dword" data="00000001"/>
|
||||||
</key>
|
</key>
|
||||||
</key>
|
</key>
|
||||||
<key name="Apps" modified="2013-07-16 16:32:45">
|
<key name="Apps" modified="2013-09-07 17:36:51">
|
||||||
<value name="Count" type="dword" data="00000000"/>
|
<value name="Count" type="dword" data="00000000"/>
|
||||||
</key>
|
</key>
|
||||||
<key name="Colors" modified="2013-07-16 16:32:45">
|
<key name="Colors" modified="2013-09-07 17:36:51">
|
||||||
<key name="Palette1" modified="2013-07-16 16:32:45">
|
<key name="Palette1" modified="2013-09-07 17:36:51">
|
||||||
<value name="Name" type="string" data="Monokai"/>
|
<value name="Name" type="string" data="Monokai"/>
|
||||||
<value name="ExtendColors" type="hex" data="00"/>
|
<value name="ExtendColors" type="hex" data="00"/>
|
||||||
<value name="ExtendColorIdx" type="hex" data="0e"/>
|
<value name="ExtendColorIdx" type="hex" data="0e"/>
|
||||||
@ -547,6 +547,9 @@
|
|||||||
</key>
|
</key>
|
||||||
<value name="Count" type="dword" data="00000001"/>
|
<value name="Count" type="dword" data="00000001"/>
|
||||||
</key>
|
</key>
|
||||||
|
<value name="OneTabPerGroup" type="hex" data="00"/>
|
||||||
|
<value name="ActivateSplitMouseOver" type="hex" data="01"/>
|
||||||
|
<value name="TabBtnDblClick" type="dword" data="00000000"/>
|
||||||
</key>
|
</key>
|
||||||
</key>
|
</key>
|
||||||
</key>
|
</key>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
e.=explorer .
|
e.=explorer .
|
||||||
gl=git log --oneline --all --graph --decorate
|
gl=git log --oneline --all --graph --decorate $*
|
||||||
hej=dir
|
ls=ls --color $*
|
||||||
|
|
||||||
|
2
vendor/Readme.md
vendored
2
vendor/Readme.md
vendored
@ -1,3 +1,3 @@
|
|||||||
## Vendor
|
## Vendor
|
||||||
|
|
||||||
Softwere from third parties + init sctipt
|
Softwere from third parties + init sctipt
|
||||||
|
40
vendor/init.bat
vendored
40
vendor/init.bat
vendored
@ -1,25 +1,45 @@
|
|||||||
@echo off
|
:: Init Script for cmd.exe
|
||||||
|
:: Sets some nice defaults
|
||||||
|
:: Created as part of cmder project
|
||||||
|
|
||||||
|
|
||||||
|
:: Seting prompt style
|
||||||
|
@for /f "tokens=2 delims=:." %%x in ('chcp') do @set cp=%%x
|
||||||
|
:: The slow part
|
||||||
|
:: World without Unicode is a sad world
|
||||||
|
@chcp 65001>nul
|
||||||
|
:: It has to be lambda, I already made a logo
|
||||||
|
@prompt $E[1;32;40m$P $_$E[1;30;40mλ $E[0m
|
||||||
|
@chcp %cp%>nul
|
||||||
|
|
||||||
:: Set prompt style
|
|
||||||
prompt $E[1;32;40m$P $_$E[1;30;40m$$ $E[0m
|
|
||||||
|
|
||||||
:: Pick right version of clink
|
:: Pick right version of clink
|
||||||
if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
||||||
set architecture=86
|
set architecture=86
|
||||||
) else (
|
) else (
|
||||||
set architecture=64
|
set architecture=64
|
||||||
)
|
)
|
||||||
|
|
||||||
:: Run clink
|
|
||||||
vendor\clink\clink_x%architecture%.exe inject --quiet --profile config
|
|
||||||
|
|
||||||
set rootDir=%CD%
|
:: Run clink
|
||||||
|
@vendor\clink\clink_x%architecture%.exe inject --quiet --profile config
|
||||||
|
|
||||||
|
:: Prepare for msysgit
|
||||||
|
:: I do not even know, copypasted from their .bat
|
||||||
|
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
|
||||||
|
@if not exist "%HOME%" @set HOME=%USERPROFILE%
|
||||||
|
@set PLINK_PROTOCOL=ssh
|
||||||
|
@if not defined TERM set TERM=msys
|
||||||
|
|
||||||
:: Enhance Path
|
:: Enhance Path
|
||||||
PATH=%PATH%;%rootDir%\bin
|
@set rootDir=%CD%
|
||||||
|
@set git_install_root=%CD%\vendor\msysgit
|
||||||
|
@set PATH=%PATH%;%rootDir%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;
|
||||||
|
|
||||||
:: Add aliases
|
:: Add aliases
|
||||||
doskey /macrofile=%rootDir%\config\aliases
|
@doskey /macrofile=%rootDir%\config\aliases
|
||||||
|
|
||||||
:: cd into users homedir
|
:: cd into users homedir
|
||||||
cd /d "%userprofile%"
|
@cd /d "%userprofile%"
|
||||||
|
|
||||||
|
@echo Welcome to cmder!
|
Reference in New Issue
Block a user