This is a custom prompt for Cmder (the alternative console emulator for Windows). This project is inspired by Zsh's theme honukai, cmder-powerline-prompt and Oh-my-posh's Honukai theme. It looks like this:
#Requirements
I'm not sure if the style will display wrong when you use some fonts. I recommend you to install powerline fonts.
- Go to Cmder Settings > Main
- Choose Main console font to be what you prefer
- Choose Alternative font to be Meslo LG M for Powerline or any font that can make the prompt display correctly
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/0NG/cmder-honukai-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 cmder-honukai-prompt.lua <git-repo-folder-name>/cmder-honukai-prompt.lua
You can set the prompt to show your username or not.
To do this, just open the .lua
file in your text editor, and fill in the username at line 4. If username is not empty, your username will not display in the prompt. Like this:
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.