Colored Text with Syntax Highlighting Translucent Console for Windows. That means a Console that gives colorful text, works as SSH Client, Git Bash, do wget etc. Basically there is no meaning of working or thinking for Windows OS, it is better to use Ubuntu 12.04 LTS or a Mac. Still those who are determined to use Windows and uses SSH/Telnet Client, Git Bash, needs many UNIX commands like wget, curl this odd titled article Colored Text with Syntax Highlighting Translucent Console for Windows will make them to feel the power of UNIX like OS.
Colored Text with Syntax Highlighting Translucent Console : Preface
We are unable to find any suitable descriptive title other than Colored Text with Syntax Highlighting Translucent Console . To understand the usages (not the look), you can check two articles :
One is a list of Command Prompt Alternative for Windows PC, because that default one is so much beautiful, eyes get blind with its beuty after working for works like the Second example article which is a guide on Installing WordPress on Windows PC using WAMP, where we have used Windows Command Prompt almost like UNIX bash. On the other hand the default ‘text editor’ notepad is so minimalistic that ultimately Gedit needs to be installed.
Getting Started with Colored Text with Syntax Highlighting Translucent Console for Windows
Many things on Syntax Highlighting said here. To start with this article, you need to install some free GNU GPL softwares (you will get links on the linked articles within this article, if you can not find, use the search function on this webpage). These softwares are :
- All components of GnuWin32
- Perl Installer for Windows
- Console 2
Extract the Console2 components (normal location for Windows 7 64 bit) :
C:Program Files (x86)GnuWin32bin
Probably a preview is needed ! Here is the final thing :
Colored Text with Syntax Highlighting Translucent Console for Windows : Step 1
Open Console 2 and click the Settings option :
Change the Shell and Startup in that way. Some of the graphical parts are done from more options from the above settings window like changing the transparency with alpha layer, changing the cursor, its color, changing the font. Do not change the Fonts color. It has a bug, if you change it, the next steps will not work. Go this this GitHub Repo :
Copy and change the code as per instruction. One important thing is, change the File permission to read only of the console.xml file. By the way, to edit all files mentioned here, use Gedit for Windows. Do not use Notepad++ :
Colored Text with Syntax Highlighting Translucent Console for Windows : Step 2
This is quite difficult part as it needs good knowledge about UNIX. Open the file named bash_profile from the etc folder :
You will find lot of info here :
This is the file which will override all the settings of syntax highlighting and others. At bash type and enter these commands one by one :
set -o vi
alias ls='ls --color '
alias cp='cp -i '
alias mv='mv -i '
alias rm='rm -i '
alias vi='gvim '
alias vip='gvim ~/.bash_profile & '
alias sop='. ~/.bash_profile '
alias mys='mysql -uroot -p '
Change the path of MySQL for your setup. With gvim .bash_profile command Vim text editor with GUI (of 20 years back) will open. If you use vi then it will open the command line tool.
Follow the Author of this article :