Fix no env in the prompt string

Yeah, I was surprised too..
This commit is contained in:
Abhishek Aryan 2021-05-10 18:47:17 +03:00 committed by GitHub
parent 36f4ce0e3c
commit f1665ddd7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
vendor/clink.lua vendored
View File

@ -129,7 +129,7 @@ local function set_prompt_filter()
if env ~= nil then env = "("..env..") " else env = "" end
prompt = get_uah_color() .. "{uah}" .. get_cwd_color() .. "{cwd}{git}{hg}{svn}" .. get_lamb_color() .. cr .. "{lamb} \x1b[0m"
prompt = get_uah_color() .. "{uah}" .. get_cwd_color() .. "{cwd}{git}{hg}{svn}" .. get_lamb_color() .. cr .. "{env}{lamb} \x1b[0m"
prompt = string.gsub(prompt, "{uah}", uah)
prompt = string.gsub(prompt, "{cwd}", cwd)
prompt = string.gsub(prompt, "{env}", env)