This is a custom prompt for Cmder (the alternative console emulator for Windows) with support for Python virtual environments (venv).
It looks like this:
It has a blue background for the prompt.
For folders with git repos, you see which branch you are working on and you get green background for clean repos and yellow for changes.
The activated Python venv is displayed in square brackets, e.g. [DJANGO]
The look is inspired by Powerline for Vim, and Zsh's theme agnoster.
Download the AnonymousPro font
You'll be able to use any font in Cmder, but this font contains the symbols included in the prompt. Chances are good that most of the other Powerline fonts will work, too. Font used in screenshots is: Roboto Mono Medium for Powerline
Download the .lua
file, and place it in %CMDER_ROOT%/config
folder.
Restart Cmder to load the prompt.
Alternatively, if you want to maintain link with the original repo, you can clone this repo into any folder
git clone https://github.com/Tset-Noitamotua/cmder-powerline-venv-prompt.git git-repo-folder-name
then create a symbolic link from the %CMDER_ROOT%/config
folder to the .lua
file.
cd %CMDER_ROOT%/config
mklink /H powerline_venv_prompt.lua <git-repo-folder-name>/powerline_venv_prompt.lua
Cmder Source Code and README
What is Clink
Clink API
ANSI Color Sequence
Cmder configurations is stored in %CMDER_ROOT%\config\
You can add files to be loaded during startup in either of these folders
%CMDER_ROOT%\config\profile.d
%CMDER_ROOT%\config
Add a .ps1
file to be loaded for Powershell shells
Add a .bat
or .cmd
files to be loaded for Windows Command shells
Add a .sh
file to be loaded for Bash shells
User-specific configurations should go into files named user-profile
with extensions ps1
, cmd
/bat
, or sh
.
The file %CMDER_ROOT%\vendor\clink.lua
sets the command prompt. See the function set_prompt_filter
.
The prompt value is stored in clink.prompt.value
Drop .lua files into the %CMDER_ROOT%\Config
folder to customize the prompt.