Skip to content

0NG/cmder-honukai-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cmder-honukai-prompt

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: screenshot

#Requirements

I'm not sure if the style will display wrong when you use some fonts. I recommend you to install powerline fonts.

Font

  • 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

Usage

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 

Configuration

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:

Helpful info for customizing Cmder

Links

Cmder Source Code and README What is Clink Clink API ANSI Color Sequence

Cmder Configurations

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.

Clink Prompt

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.

About

Honukai style prompt for Cmder on Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages