diff --git a/config/prompt.lua b/config/prompt.lua new file mode 100644 index 0000000..1de6e27 --- /dev/null +++ b/config/prompt.lua @@ -0,0 +1,5 @@ +function lambda_prompt_filter() + clink.prompt.value = string.gsub(clink.prompt.value, "{lamb}", "λ") +end + +clink.prompt.register_filter(lambda_prompt_filter, 60) \ No newline at end of file diff --git a/vendor/init.bat b/vendor/init.bat index e4daa8c..dee0a97 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -2,16 +2,9 @@ :: Sets some nice defaults :: Created as part of cmder project - -:: Setting prompt style -@for /f "tokens=2 delims=:." %%x in ('chcp') do @set cp=%%x -:: The slow part -:: World without Unicode is a sad world -@chcp 65001>nul -:: It has to be lambda, I already made a logo -@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40mλ$S$E[0m -@chcp %cp%>nul - +:: Change the prompt style +:: Mmm tasty lamb +@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m :: Pick right version of clink @if "%PROCESSOR_ARCHITECTURE%"=="x86" (