DEV Community

Discussion on: App tips for Windows power users

Collapse
 
mareksamec profile image
mareksamec

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👍

Collapse
 
katnel20 profile image
Katie Nelson

Well, I did this to change it:

function my_prompt_filter()
    cwd = clink.get_cwd()
    clink.prompt.value = cwd..">"
end

Was yours any different?

Thread Thread
 
mareksamec profile image
mareksamec

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 = "~$"