Module for Orbital Shell
Add custom text to the prompt of console showing the status of git repositories if the current directory is above a repository folder
install into the shell:
> module -i prompt-git-info
up to date
worktree changed
index changed
ahead
behind
ahead/behind
no repo
namespace env.com.git.promptInfo
variable | type | value |
---|---|---|
aheadBackgroundColor | string | \e[48;5;136m |
aheadTextTemplate | string | %bgColor%(f=white) %repoName% ├ %branch% %sepSymbol%%errorMessage%\e[48;5;237m+%indexAdded% ~%indexChanges% -%indexDeleted% | ~%worktreeChanges% -%worktreeDeleted% ?%untracked% \e[48;5;136m↑%ahead%(rdc) |
aheadBehindTextTemplate | string | %bgColor%(f=white) %repoName% {branchSymbol} %branch% %sepSymbol%%errorMessage%{infoColor}+%indexAdded% ~%indexChanges% -%indexDeleted% | ~%worktreeChanges% -%worktreeDeleted% ?%untracked% {aheadColor}{Unicode.ArrowUp}%ahead%{behindColor}{Unicode.ArrowDown}%behind%(rdc) |
behindBackgroundColor | string | (b=darkred) |
behindTextTemplate | string | %bgColor%(f=white) %repoName% ├ %branch% %sepSymbol%%errorMessage%\e[48;5;237m+%indexAdded% ~%indexChanges% -%indexDeleted% | ~%worktreeChanges% -%worktreeDeleted% ?%untracked% (b=darkred)↓%behind%(rdc) |
infoBackgroundColor | string | \e[48;5;237m |
isEnabled | bool | true |
modifiedBackgroundColor | string | \e[48;5;130m |
modifiedTextTemplate | string | %bgColor%(f=white) %repoName% ├ %branch% %sepSymbol%%errorMessage%\e[48;5;237m+%indexAdded% ~%indexChanges% -%indexDeleted% | ~%worktreeChanges% -%worktreeDeleted% ?%untracked%(rdc) |
modifiedUntrackedBackgroundColor | string | \e[48;5;166m |
noDataTextTemplate | string | %bgColor%(f=white) %repoName% ├ %branch% %errorMessage%(rdc) |
templateNoRepository | string | (b=darkblue)(f=white) » %errorMessage%(rdc) |
unknownBackgroundColor | string | (b=darkblue) |
upToDateBackgroundColor | string | \e[48;5;22m |
Orbital Shell is a multi-plateform (windows, linux, macos, arm) command shell, inspired by bash and POSIX recommendations. It provides any usual bash shell feature (even if modernized) and nice syntaxes and features allowing to interact (get/set/call members) with C# objects. Developed using C# 8, .NET Core 3.1/Net 5 and .NET Standard 2.1