Welcome tag moderator AKA Unofficial DEV cheerleader. While most of my friends are found on SnapChat or Tic-Toc, you can find me here. And I OOP, but I’m not a VSCO girl.
I’ve recently been using Cmder. Have you written any Lua scripts for it?
So far, I’ve only adjusted the startup one to change the cmd window prompt. I find the default lambda one annoying because it takes up 2 lines.
I have only modified the prompt as well and slightly modified few lines in git related stuff but with newer versions of Cmder this was not even necessary. On top of that I am a noob with Lua. Now I am actually using the default lambda because people keep asking me about this strange 'Half-life' terminal😊. I could achieve everything I needed through Cmder settings or by adding some executables to extend the default functionality👍
Welcome tag moderator AKA Unofficial DEV cheerleader. While most of my friends are found on SnapChat or Tic-Toc, you can find me here. And I OOP, but I’m not a VSCO girl.
I don't have the old backups anymore but it was something like this. I removed the git and svn checks because it was slowing down the prompt too much. I just modified these two lines in the local function set_prompt_filter():
local cmder_prompt = "\x1b[1;32;40m{cwd} \x1b[1;39;40m{lamb} \x1b[0m"
local lambda = "~$"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I’ve recently been using Cmder. Have you written any Lua scripts for it?
So far, I’ve only adjusted the startup one to change the cmd window prompt. I find the default lambda one annoying because it takes up 2 lines.
I have only modified the prompt as well and slightly modified few lines in git related stuff but with newer versions of Cmder this was not even necessary. On top of that I am a noob with Lua. Now I am actually using the default lambda because people keep asking me about this strange 'Half-life' terminal😊. I could achieve everything I needed through Cmder settings or by adding some executables to extend the default functionality👍
Well, I did this to change it:
Was yours any different?
I don't have the old backups anymore but it was something like this. I removed the git and svn checks because it was slowing down the prompt too much. I just modified these two lines in the
local function set_prompt_filter()
: