Install Cmder Windows 7

Posted on

When I'm working with Windows I love to have a standarized way to install software. Did you remember how we have set up our dev machines a few years ago? Well, about five years ago I found this blog post by security expert Troy Hunt and his showed most of the time cinst this and cinst that. This opened my eyes, wow there is a package manager for Windows. Since then I started with automation tools like and to describe repeatable development and test environments.

This also lead me to contribute back to the Chocolatey community repository, because I just couldn't cinst packer at that time. So I wrote my which is very easy as it only links to the official download URL's from the software vendor.In these five years I went through several Windows machines and contributed missing Choco packages also for installing the Docker tools I needed. OverviewThe following diagram shows you the most relevant Chocolatey packages for Docker. I'll give you a little bit of history and explain why they all exist in the following chapters.DockerThe first Docker tool that landed as a Chocolatey package was the Docker CLI.

Working at Microsoft at that time ported the Docker CLI to Windows so we had the docker.exe to communicate with remote Docker engines running in a Linux machine. This package was and still is called docker.Nowadays it might be confusing if people want to run choco install docker and 'just' get the Docker CLI without any Docker Engine. We're in discussion with the Chocolatey team how to softly fix this and transfer the Docker CLI into a new package name called docker-cli to make it more clear. Docker ToolboxDocker, Inc.

Windows

Created Docker Toolbox to have all tools and also VirtualBox bundled together. Started a Chocolatey package docker-toolbox for it and still maintains it.This package is usable for people that cannot run the newer Docker Desktop product. The reasons could be. Still running Windows 7.

Running a Windows 10 Home or LTSB version which is too old. Running VirtualBox VM's for other tasks that prevent the installation of Hyper-VMachine, Compose.I worked with VMware Workstation for years so the Docker Toolbox. I knew that there is a tool called docker-machine to create Linux VM's with the boot2docker.iso file. That's why I started with the Choco packages for docker-machine, helped maintaining the docker-compose package and added some Docker Machine drivers as Chocolatey packages docker-machine-vmwareworkstation and docker-machine-vmware as well.This is the fine granular approach to install only the tools you need, but still using the choco install experience. Docker for Windowsstarted a Chocolatey package docker-for-windows which is an excellent work.

You can install 'Docker for Windows' product with it which is the successor of 'Docker Toolbox'. But please read the next section to grab the latest version of it. Docker DesktopWith the new release of Docker Desktop 2.0 for Windows 10 Pro/Enterprise there is also a change in the name. The product 'Docker for Windows' has been renamed to 'Docker Desktop'. It also gets a new version format.That's the reason to start with a new Choco package name. Please unlearn docker-for-windows and just use choco install docker-desktop to get the latest version on your machine.Thanks for mainting this choco package!

Windows Server?If you want to install Docker on a Windows Server 2016 or 2019, there is no Chocolatey package for it.Please read installation guide from Microsoft or the guide from the Docker Store. TL/DRThe best experience with Docker on a Windows 10 machine is using the Docker Desktop product. Try to grab an up-to-date Windows 10 Pro machine to be all set for it and then run choco install docker-desktopOtherwise jump over to and grab one of the other Docker related Chocolatey packages.I hope this overview of all the Chocolatey packages will give you a better understanding of what is right for your needs. I would love to hear your feedback so please leave a comment below or ask me on.Read by this author.

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts Backstory ( TLDR)I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.For my console needs, I am using which is based on with as my shell of choice.Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out by Scott Hanselman.For source control, I use git for my spikes since our main source control at work is still using hosted TFS on. VS CodeMy editor of choice nowadays is which is lightweight, customizable and all around a good environment to do development for, and other spikings in general.

I've also done some developments on the editor which is supported quite well including debugging if you follow that style of development. VS Code customization is a large topic by itself, so I won't be writing about it here. Perhaps some other time.If you want to be on the cutting edge, you can try. From my experience so far, it is pretty stable and is my VS Code environment of late.For now, we'll focus on customizing Cmder, Powershell with git, posh-git, oh-my-posh and the Powerline fonts, specifically on how I setup mine which will net you something like the figure below.A lot of people has written up about customizing PowerShell but I can only find bits and pieces.

This article hopefully will combine those bits and pieces into a more coherent end-to-end story. Prerequisite: Install PowerShellGetIf you are already on Windows 10, you can skip this section.If not, you will need to make sure you have PowerShellGet installed. We will use it to pull PS Modules from PS Gallery. Instruction on how to get PowerShellGet can be found.Upgrading to PowerShell v5 is preferable since it comes with PowerShellGet. The Get WMF 5 route from the link above will do this for you. Just make sure to download the right version for you OS. If you are on Win2K8R2, choose Win8.1AndW2K12R2-KB3134758-x64.msu from the Download list, etc.You can check your PowerShell version by typing the following from within PowerShell.

Cd fonts.install.ps1Wait for all the fonts to be installed.From this point onward, you can switch to Cmder and do the rest from there. Cmder Customization Powerline Font SetupOpen up Cmder Settings dialog ( Win+Alt+P when Cmder window is active) and ensure that one of the Powerline fonts is used for both Main console font and Alternative font as shown below. The Alternative font is needed for showing the correct icons for git on the PowerShell prompt.Here I am using the Meslo LG M for Powerline font which I think looks quite nice. I tried using Ubuntu Mono for Powerline, but for some reason, it messed up my icons.Try different fonts yourself and see which one you like.

Just remember that you will need to choose the font that has been patched for Powerline, otherwise you Git icons might not show correctly.Pay attention that I also highlighted the ConEmu.xml location in the Storage field. You will need this location later when we customize the ConEmu Theme. It's not necessary but it's a nice to have. Also, yours might be located in a different directory than mine since I installed Cmder manually previously. Quake Style SetupAnother thing that you might want to customize is to put Cmder into Quake style where you can show and hide it using Ctrl+ key.

Archived from on 2014-03-10. Royal hunt land of broken hearts rar. Retrieved 2013-07-07. Mariann Krizsan. Retrieved 2013-07-07.

To do that set the Quake mode setting to something like this:I like the animation speed set to 150 milliseconds since it is a bit snappier than the default 300 milliseconds. PowerShell as Default Task SetupTo set PowerShell as your default task when you open Cmder, ensure that it is set as Specified named task as per figure below.Take note of the profile.ps1 location above inside the Selected contents section. I already changed this to the $PROFILE variable from inside PowerShell.

By default, Cmder is pointing to its own profile.ps1 location. If you don't change this, your PowerShell profile customization that we will do later will not be loaded automatically upon launching Cmder or any new PowerShell task tab inside Cmder.To check where your own PowerShell profile location, you can type $PROFILE inside PowerShell.If you are not familiar with Windows,%USERPROFILE% is equivalent to C:Usersusername (which is the default user profile location in Windows, unless you have moved it somewhere else).Also, you might have this file already or not. It does not matter. We'll create one or edit existing one later.

The important thing here is that you need to point the PowerShell task to the right location or your profile customization will not load automatically and you will have to load it manually by typing the following into PowerShell. $PROFILEIt's the equivalent of source.bashrc or source.zshrc, etc. If you are familiar with Linux.In any case, it is a nice thing to remember when you further customize your $PROFILE.To customize your profile you can run ise $PROFILE from PowerShell.

Again, we will do this later, don't bother with it now.To change that selected task contents, you can do it from the Tasks tab like the figure below. Ensure that you change both PowerShell and PowerShell as Admin.ConEmu Theme ConfigurationI am using one of the default themes that comes with ConEmu / Cmder which is Twilight.If you want to add other themes, you can clone the following git repository: and follow his instruction on How To Install it.As I mentioned previously, pay attention to the Storage field setting in the figure above. You need to replace the -ConfigPath value to that particular ConEmu.xml location.To clone the repository do. Install-ConEmuTheme.ps1 -ConfigPath C:UsersjimmyDownloadscmdervendorconemu -maximus5ConEmu.xml -Operation Add -ThemePathOrName.oceans16 -dark.xmlIn the figure about I am using an alias l which I bind to Get-ChildItemColorFormatWide from git repository. Don't worry if you don't have it.

Just do ls for now. I'll show you how to install that cmdlet a bit later. Install Posh-Git and Oh-My-PoshPosh-Git (PowerShell Git) will provide you with additional information on your PowerShell prompt when you are in a directory that has been designated as a local git repository.Prior to installing these module, run the followings. Import-Module 'posh-git ' Import-Module 'oh-my-posh ' Set-Theme agnosterIf you've done everything correctly, your PowerShell prompt should like something like the figure below.If something is off, like you are seeing weird characters, etc. It is probably due to you misconfiguring the Powerline font inside Cmder setting. If so, revisit the section above to configure it.If you don't like the agnoster theme, you can set it to something else. Visit the GitHub repository to see what other themes are available and additional instructions.

Get-ChildItemColor CustomizationThe following customization will colorize the directory listing.To install Get-ChildItemColor, simply run the following in PowerShell. Install-Module -Name 'Get-ChildItemColor 'Once installed, you can use these cmdlet Get-ChildItemColor and Get-ChildItemColorFormatWide to list your directory content and it will colorize files, directory, etc. Appropriately.In the next section we will add alias so we can use l and ls as shortcuts to the cmdlet above. Configuring the PowerShell $PROFILERun ise $PROFILE from within PowerShell.

Install Cmder Windows 7 Free

This will launch the Integrated Scripting Environment for PowerShell and let you edit your $PROFILE file.Add the following things to that content of the $PROFILE file. Step 1: Open PowerShell and Try 👇 $DefaultUser = 'Username'Step 2: If it works then open Windows PowerShell ISE using this command 👇 ise $PROFILEStep 3: Edit Microsoft.PowerShellprofile.ps1 file by adding this line 👇 Set-Theme Paradox$DefaultUser = 'Username'Step 4: Click Save and Run icon 👇Now restart your terminal 😍 (This will work for Agnoster, Fish, Honukai, Paradox and Sorin themes) If by default Microsoft.PowerShellprofile.ps1 is not opened in Windows PowerShell ISE you can manually open the file by navigating to 👇DocumentsWindowsPowerShell directory.

Conemu

I hope this was helpful ❤.