oh-my-posh/src/segments
Piotr Kalinowski 3895210ab3 fix(git): further fixes for submodule worktrees
filepath.Join() just concatenates paths. We have to check manually for
an absolute path and discard the first component to end up with the
correct path.

Also, fix the tests to demonstrate actual behaviour of git, not what
filepath.Join() was doing.

Additionally, note that on Windows git paths in gitdir use unix
separators, so search for `/worktrees/` instead of using system
separator, just like when processing all the other cases.
2022-08-03 18:20:00 +02:00
..
angular.go feat: nx segment 2022-05-27 17:52:08 +02:00
aws.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
aws_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
az.go fix(az): do not use env var for module 2022-06-25 19:47:16 +02:00
az_functions.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
az_test.go chore: rename platform variables 2022-08-03 18:03:04 +02:00
battery.go feat: include battery lib 2022-07-05 21:13:25 +02:00
brewfather.go feat: withings segment 2022-07-20 07:40:51 +02:00
brewfather_test.go refactor: extract OAuth logic 2022-07-20 07:40:51 +02:00
cds.go feat: cds segment 2022-03-09 10:10:55 +01:00
cds_test.go feat: cds segment 2022-03-09 10:10:55 +01:00
cf.go feat: cloud foundry segment 2022-02-17 12:58:20 +01:00
cf_target.go feat: cloud foundry target segment 2022-02-22 20:05:40 +01:00
cf_target_test.go feat: cloud foundry target segment 2022-02-22 20:05:40 +01:00
cf_test.go feat: cloud foundry segment 2022-02-17 12:58:20 +01:00
cmake.go feat(segment): added cmake segment 2022-07-15 13:38:34 +02:00
cmake_test.go fix(language): do not fail on first error 2022-07-27 07:37:36 +02:00
command.go feat(command): run script 2022-07-21 10:47:16 +02:00
command_test.go feat(command): run script 2022-07-21 10:47:16 +02:00
crystal.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
crystal_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
dart.go feat: flutter segment 2022-05-24 10:31:40 +02:00
dart_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
dotnet.go feat: dotnet section visible when *.slnf files present 2022-04-29 18:28:59 +02:00
dotnet_test.go chore: remove typo 2022-02-19 19:23:56 +01:00
executiontime.go feat(executiontime): add galvestonms 2022-07-21 13:43:02 +02:00
executiontime_test.go feat(executiontime): add galvestonms 2022-07-21 13:43:02 +02:00
exit.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
exit_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
flutter.go feat: flutter segment 2022-05-24 10:31:40 +02:00
flutter_test.go feat: flutter segment 2022-05-24 10:31:40 +02:00
fossil.go feat: fossil segment 2022-06-05 16:41:35 +02:00
fossil_test.go feat: fossil segment 2022-06-05 16:41:35 +02:00
git.go fix(git): further fixes for submodule worktrees 2022-08-03 18:20:00 +02:00
git_test.go fix(git): further fixes for submodule worktrees 2022-08-03 18:20:00 +02:00
golang.go fix: typo in numerous version url templates 2022-03-03 07:56:09 +01:00
golang_test.go fix(python): do not stop at pyenv fail 2022-07-26 07:36:25 +02:00
haskell.go feat(haskell): add haskell segment 2022-02-08 19:56:30 +01:00
haskell_test.go feat(haskell): add haskell segment 2022-02-08 19:56:30 +01:00
ipify.go feat: withings segment 2022-07-20 07:40:51 +02:00
ipify_test.go refactor: extract OAuth logic 2022-07-20 07:40:51 +02:00
iterm.go feat: reference segments properties cross segment 2022-05-06 12:28:48 +02:00
iterm_test.go feat: iTerm2 integration for MacOS & Theme 2022-05-01 08:30:24 +02:00
java.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
java_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
julia.go fix: typo in numerous version url templates 2022-03-03 07:56:09 +01:00
julia_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
kotlin.go fix: typo in numerous version url templates 2022-03-03 07:56:09 +01:00
kotlin_test.go feat(kotlin): adds kotlin segment 2022-03-01 10:15:21 +01:00
kubectl.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
kubectl_test.go feat(winreg): additional value support 2022-06-07 07:09:32 +02:00
language.go fix(language): do not fail on first error 2022-07-27 07:37:36 +02:00
language_test.go feat(language): expose executable and allow different URL templates 2022-07-20 12:42:44 +02:00
lua.go feat: add lua segment 2022-07-20 12:42:44 +02:00
lua_test.go feat: add lua segment 2022-07-20 12:42:44 +02:00
nbgv.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
nbgv_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
nightscout.go feat: withings segment 2022-07-20 07:40:51 +02:00
nightscout_test.go refactor: extract OAuth logic 2022-07-20 07:40:51 +02:00
node.go fix(language): version url templates fix 2022-03-23 10:35:52 +01:00
node_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
npm.go fix(language): version url templates fix 2022-03-23 10:35:52 +01:00
npm_test.go feat: npm segment 2022-03-10 22:09:30 +01:00
nx.go feat: nx segment 2022-05-27 17:52:08 +02:00
nx_test.go feat: nx segment 2022-05-27 17:52:08 +02:00
os.go chore: rename platform variables 2022-08-03 18:03:04 +02:00
os_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
owm.go feat(owm): correct data type for temperature 2022-07-29 13:44:38 +02:00
owm_test.go feat(owm): correct data type for temperature 2022-07-29 13:44:38 +02:00
path.go fix(path): map Parent correctly 2022-08-03 18:03:04 +02:00
path_test.go fix(path): map Parent correctly 2022-08-03 18:03:04 +02:00
perl.go feat: perl segment 2022-07-08 12:21:08 +02:00
perl_test.go feat: perl segment 2022-07-08 12:21:08 +02:00
php.go fix(language): version url templates fix 2022-03-23 10:35:52 +01:00
php_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
plastic.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
plastic_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
posh_git.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
posh_git_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
project.go feat(project): display nuspec information 2022-04-16 21:25:43 +02:00
project_test.go feat(winreg): additional value support 2022-06-07 07:09:32 +02:00
python.go fix(python): do not clear virtualenv in pyenv 2022-07-28 08:04:37 +02:00
python_test.go fix(python): do not clear virtualenv in pyenv 2022-07-28 08:04:37 +02:00
r.go fix(r): parse 4.2.0 correctly 2022-05-06 20:24:00 +02:00
r_test.go fix(r): parse 4.2.0 correctly 2022-05-06 20:24:00 +02:00
root.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
ruby.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
ruby_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
rust.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
rust_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
scm.go chore: rename platform variables 2022-08-03 18:03:04 +02:00
scm_test.go fix: sync DirMatchesOneOf 2022-04-06 10:19:47 +02:00
session.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
session_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
shell.go feat(shell): add version 2022-04-20 19:24:47 +02:00
shell_test.go feat(shell): add version 2022-04-20 19:24:47 +02:00
spotify.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
spotify_darwin.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
spotify_darwin_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
spotify_test.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
spotify_windows.go fix(windows): better logs for window title 2022-04-05 08:12:05 +02:00
spotify_windows_test.go fix(windows): better logs for window title 2022-04-05 08:12:05 +02:00
spotify_wsl.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
spotify_wsl_test.go feat: query all window titles for app info 2022-03-06 19:28:35 +01:00
strava.go feat: withings segment 2022-07-20 07:40:51 +02:00
strava_test.go refactor: extract OAuth logic 2022-07-20 07:40:51 +02:00
svn.go feat: add svn segment 2022-05-30 08:59:22 +02:00
svn_test.go feat: add svn segment 2022-05-30 08:59:22 +02:00
swift.go feat(swift): add swift segment 2022-03-03 08:00:14 +01:00
swift_test.go feat(swift): add swift segment 2022-03-03 08:00:14 +01:00
sysinfo.go feat: add property for available memory 2022-05-03 15:35:59 +02:00
sysinfo_test.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
terraform.go feat(terraform): add version information 2022-02-09 14:39:50 +01:00
terraform_test.go feat(winreg): additional value support 2022-06-07 07:09:32 +02:00
text.go fix: migrate text correctly 2022-02-03 10:44:18 +01:00
text_test.go feat: move template to segment 2022-03-27 15:42:42 +02:00
time.go feat: deprecate pre- and postfix 2022-02-03 10:44:18 +01:00
time_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00
ui5tooling.go feat: UI5 tooling segment 2022-02-14 07:41:33 +00:00
ui5tooling_test.go feat: UI5 tooling segment 2022-02-14 07:41:33 +00:00
wakatime.go feat: withings segment 2022-07-20 07:40:51 +02:00
wakatime_test.go refactor: extract OAuth logic 2022-07-20 07:40:51 +02:00
wifi.go chore: rename platform variables 2022-08-03 18:03:04 +02:00
wifi_test.go chore: rename platform variables 2022-08-03 18:03:04 +02:00
winreg.go chore: rename platform variables 2022-08-03 18:03:04 +02:00
winreg_test.go chore: rename platform variables 2022-08-03 18:03:04 +02:00
withings.go fix(withings): calculate total sleep time 2022-07-22 20:46:56 +02:00
withings_test.go fix(withings): pick today's steps 2022-07-22 20:46:56 +02:00
ytm.go feat: withings segment 2022-07-20 07:40:51 +02:00
ytm_test.go refactor: move segments to module 2022-02-03 10:44:18 +01:00