Skip to content

Add information about any current or parent GIT repository to orbital shell command line prompt. for example: OrbitalShell ├ master +0 ~0 -0 | ~2 -0 ?2

License

Notifications You must be signed in to change notification settings

franck-gaspoz/Prompt-Git-Info

 
 

Repository files navigation

Prompt Git Info

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

.NET last commit releasever releasedate
toplanguage lngcount
codesize reposize

Usage

install into the shell:

> module -i prompt-git-info

Preview

up to date

worktree changed

index changed

ahead

behind

ahead/behind

no repo



Settings

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

About

Add information about any current or parent GIT repository to orbital shell command line prompt. for example: OrbitalShell ├ master +0 ~0 -0 | ~2 -0 ?2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%