Skip to content

Commit 74202a8

Browse files
authored
Merge pull request #1 from daxgames/status-branchonly-dax
Status branchonly dax
2 parents a5c98d4 + 56b04fc commit 74202a8

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

Diff for: vendor/clink.lua

+8-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ local function get_conflict_color()
4242
end
4343

4444
local function get_unknown_color()
45-
return unknown_color or "\x1b[30;1m"
45+
return unknown_color or "\x1b[37;1m"
4646
end
4747

4848
---
@@ -397,18 +397,17 @@ local function git_prompt_filter()
397397
clean = get_clean_color(),
398398
dirty = get_dirty_color(),
399399
conflict = get_conflict_color(),
400-
unknown = get_unknown_color()
400+
nostatus = get_unknown_color()
401401
}
402402

403403
local git_dir = get_git_dir()
404+
local color
404405
cmderGitStatusOptIn = get_git_status_setting()
405-
406406
if git_dir then
407-
-- if we're inside of git repo then try to detect current branch
408407
local branch = get_git_branch(git_dir)
409-
local color = colors.unknown
410408
if branch then
411409
if cmderGitStatusOptIn then
410+
-- if we're inside of git repo then try to detect current branch
412411
-- Has branch => therefore it is a git folder, now figure out status
413412
local gitStatus = get_git_status()
414413
local gitConflict = get_git_conflict()
@@ -421,8 +420,9 @@ local function git_prompt_filter()
421420
if gitConflict then
422421
color = colors.conflict
423422
end
423+
else
424+
color = colors.nostatus
424425
end
425-
426426
clink.prompt.value = string.gsub(clink.prompt.value, "{git}", color.."("..verbatim(branch)..")")
427427
return false
428428
end
@@ -443,6 +443,7 @@ local function hg_prompt_filter()
443443
local colors = {
444444
clean = get_clean_color(),
445445
dirty = get_dirty_color(),
446+
nostatus = get_unknown_color()
446447
}
447448

448449
local pipe = io.popen("hg branch 2>&1")
@@ -477,6 +478,7 @@ local function svn_prompt_filter()
477478
local colors = {
478479
clean = get_clean_color(),
479480
dirty = get_dirty_color(),
481+
nostatus = get_unknown_color()
480482
}
481483

482484
if get_svn_dir() then

Diff for: vendor/cmder_prompt_config.lua.default

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ lamb_color = "\x1b[1;30;40m" -- Light Grey = Lambda Color
4343
clean_color = "\x1b[1;37;40m"
4444
dirty_color = "\x1b[33;3m"
4545
conflict_color = "\x1b[31;1m"
46-
unknown_color = "\x1b[30;1m"
46+
unknown_color = "\x1b[37;1m" -- White = No VCS Status Branch Color

Diff for: vendor/git-prompt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ else
6161
PS1="$PS1"'\[\033[36m\]' # change color to cyan
6262
PS1="$PS1"'`__git_ps1`' # bash function
6363
else
64-
PS1="$PS1"'\[\033[30;1m\]' # change color to gray
64+
PS1="$PS1"'\[\033[37;1m\]' # change color to white
6565
PS1="$PS1"'`getSimpleGitBranch`'
6666
fi
6767
fi

Diff for: vendor/psmodules/Cmder.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function checkGit($Path) {
4343
} else {
4444
$branchName = "HEAD detached at $($headContent.Substring(0, 7))"
4545
}
46-
Write-Host " [$branchName]" -NoNewline -ForegroundColor DarkGray
46+
Write-Host " [$branchName]" -NoNewline -ForegroundColor White
4747
}
4848

4949
return

0 commit comments

Comments
 (0)