diff --git a/Readme.md b/Readme.md index 84f9cdd92..8750f3809 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,6 @@ # Cmder -**Yes, you can [download latest release](https://github.com/bliker/cmder/releases)** +Latest release is **[v1.1.2](https://github.com/bliker/cmder/releases/tag/v1.1.2)** Cmder is a **software package** created out of pure frustration over absence 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. @@ -8,7 +8,7 @@ Cmder is a **software package** created out of pure frustration over absence of ## Why use it -The main advantage of Cmder is portability. It is designed to be totally self-contained with no external dependencies. That makes it 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-contained with no external dependencies, that is makes it great for **USB Sticks** or **Dropbox**. So you can carry your console, aliases and binaries (like wget, curl and git) with you anywhere. ## Installation diff --git a/bin/Readme.md b/bin/Readme.md index fc1f78516..eb044dfeb 100644 --- a/bin/Readme.md +++ b/bin/Readme.md @@ -1,3 +1,3 @@ ## Bin -This folder will be injected into path at runtime +This folder will be injected into the PATH environment variable at runtime. diff --git a/config/Readme.md b/config/Readme.md index 5708652cf..77e232678 100644 --- a/config/Readme.md +++ b/config/Readme.md @@ -1,3 +1,3 @@ ## Config -All config files must be in this folder, if there is no option to set the folder directly, it has to be hardlinked. \ No newline at end of file +All config files must be in this folder. If there is no option to set this folder directly, it has to be hardlinked. \ No newline at end of file diff --git a/gitcleanup.py b/gitcleanup.py new file mode 100644 index 000000000..57213bda7 --- /dev/null +++ b/gitcleanup.py @@ -0,0 +1,24 @@ +import os + +def main(): + cwd = os.getcwd() + os.chdir(cwd + '\\vendor\\msysgit\\libexec\\git-core\\') + for file_ in os.listdir(cwd + '\\vendor\\msysgit\\libexec\\git-core\\'): + if file_ == 'git.exe' or file_ == 'mergetools' or file_.endswith('.bat'): + continue # Ignore main git exe, mergetools folder and already created batch files. + if file_.endswith('.exe'): + with open(os.path.splitext(file_)[0] + '.bat', 'w') as out: + out.write('@ECHO OFF\n' + os.path.splitext(file_)[0].replace('-',' ') + ' $*') + os.remove(file_) + # print 'Cleaned out ' + file_ + continue + else: + with open(file_ + '.bat', 'w') as out: + out.write('@ECHO OFF\n' + file_.replace('-', ' ') + ' $*') + os.remove(file_) + # print 'Cleaned out ' + file_ + continue + pass + +if __name__ == '__main__': + main() diff --git a/gitcleanup.rb b/gitcleanup.rb new file mode 100644 index 000000000..2a1c8f855 --- /dev/null +++ b/gitcleanup.rb @@ -0,0 +1,26 @@ +def main() + git_dir = '\\vendor\\msysgit\\libexec\\git-core\\' + working_dir = Dir.pwd + Dir.chdir(working_dir + git_dir) + Dir.entries(working_dir + git_dir).each do |file| + if file == 'git.exe' or file == 'mergetools' or file.end_with?('.bat') then + next + end + if file.end_with?('.exe') then + File.open(File.basename(file, '.*') + '.bat', "w") do |new_file| + new_file.write('@ECHO OFF\n' + File.basename(file, '.*').gsub('-',' ') + ' $*') + end + File.delete(file) + next + elsif file.end_with?('.bat') then + File.open(file + '.bat', "w") do |new_file| + new_file.write('@ECHO OFF\n' + file.gsub('-', ' ') + ' $*') + end + File.delete(file) + next + end + end +end + +main + diff --git a/vendor/Readme.md b/vendor/Readme.md index 97082ca82..b44bf6be9 100644 --- a/vendor/Readme.md +++ b/vendor/Readme.md @@ -1,3 +1,3 @@ ## Vendor -Software from third parties + init sctipt +Third parties software & init script.