Jan De Dobbeleer
016d981baa
fix(pwsh): invoke module support before context
...
relates to #655
2021-04-17 20:37:49 +02:00
Jan De Dobbeleer
52f260caf6
feat(node): show NPM/Yarn context
...
resolves #653
2021-04-17 14:51:20 +02:00
Jan De Dobbeleer
c98c1b5425
feat(language): enable in home dir when always_enabled
...
resolves #649
2021-04-17 13:31:38 +02:00
Jan De Dobbeleer
212721c9e3
fix(battery): better state mapping
...
relates to #644
2021-04-16 07:54:05 +02:00
Jan De Dobbeleer
92a2f740e9
refactor: move battery logic to segment
2021-04-16 07:54:05 +02:00
lnu
9c4ba43871
fix: stack count variable names + compability with all init modes
2021-04-14 14:58:54 +02:00
lnu
4f96cc0f7c
fix: wrong stack count when init from Set-PoshPrompt
2021-04-14 07:00:44 +02:00
lnu
b9601b632a
feat: show/hide stack count in path segment
2021-04-12 22:25:01 +02:00
Jan De Dobbeleer
434cd41faf
fix(git): move untracked to added
...
resolves #628
2021-04-12 19:30:54 +02:00
Jan De Dobbeleer
90680f2c70
fix(battery): hide segment when no batteries
...
resolves #633
2021-04-12 19:17:58 +02:00
Richard Hooper
fb203eba51
feat(themes): adding pixelrobots theme
2021-04-12 12:38:01 +02:00
Jan De Dobbeleer
66bddcc8c9
fix(git): track submodule changes too
...
resolves #627
2021-04-11 20:16:04 +02:00
Jan De Dobbeleer
2990bc2536
fix: return error on template render
2021-04-11 15:27:20 +02:00
Jan De Dobbeleer
ee93191aac
fix(battery): count all battery information
2021-04-11 15:27:20 +02:00
Jan De Dobbeleer
afb69b4229
feat: export image of the current theme
2021-04-11 10:53:10 +02:00
Olivier Jullien
5134e11bc6
fix(bash): force temporary file deletion
...
forces the temporary file deletion when the user uses a security rm alias
2021-04-10 09:07:04 +02:00
TravisTX
4597f158c4
perf(az): improve performance for az powershell
2021-04-06 15:35:18 +02:00
lnu
bb6a90a867
feat: toml intellisense + recommended extensions for toml and yaml
2021-04-05 14:05:08 +02:00
Jan De Dobbeleer
8afadc0bcd
feat: azure functions segment
2021-04-02 19:46:32 +02:00
Jan De Dobbeleer
64aa66eebc
feat: cfg.TerminalBackground as template
2021-04-01 21:51:06 +02:00
Jan De Dobbeleer
447ca4bb94
refactor: remove redundant rectangle filler
2021-04-01 21:51:06 +02:00
lnu
513794af46
fix: adoptopenjdk 16 version parsing
2021-04-01 17:13:19 +02:00
TravisTX
85fb7611bc
feat(az): clear envvars
2021-03-31 07:11:43 +02:00
Jan De Dobbeleer
57d49658ea
feat(battery): use template to render segment
2021-03-28 16:22:29 +02:00
TravisTX
7db7f13e51
feat(az): support az pwsh module
2021-03-28 11:24:49 +02:00
Jan De Dobbeleer
1e53daa687
refactor: replace deprecated linter
2021-03-27 17:52:53 +01:00
Jan De Dobbeleer
320ec1d7d3
feat(pwsh): posh-git segment
2021-03-27 17:52:53 +01:00
Jan De Dobbeleer
f90840e3ec
fix(config): export JSON correctly
...
resolves #581
2021-03-27 13:49:31 +01:00
Jan De Dobbeleer
61cb33f4f9
fix(pwsh): map home dir on theme export
2021-03-27 13:49:31 +01:00
Jan De Dobbeleer
4c992e65b3
feat: dependency update
2021-03-27 13:49:31 +01:00
Jan De Dobbeleer
542ef2b73e
feat(language): disable when at home
...
resolves #547
2021-03-22 20:15:52 +01:00
Jan De Dobbeleer
18c56efd2e
feat: multiple config formats
2021-03-21 19:30:56 +01:00
lnu
cd3f8742ad
fix: escape double quotes for zsh prompt
2021-03-20 11:20:18 +01:00
lnu
494d3b2d20
fix: fish 3.2 empty command duration
2021-03-20 07:13:24 +01:00
lnu
838567cbcd
feat: don't keep duration when no command is entered
...
pwsh and fish alignement
2021-03-19 19:49:27 +01:00
Luca Ercole
5f035f8855
fix: remove double invocation of --shell argument
2021-03-18 19:08:09 +01:00
Luca Ercole
8de004ff53
fix: preserve exit code in omp.bash
...
Other small changes include:
- rename functions to simplify debugging
- quoting some variables and simplifying an expression as suggested by shellcheck
- idempotency when modifying PROMPT_COMMAND.
- check if file exists before trying to remove it in the trap.
2021-03-18 18:50:53 +01:00
Jan De Dobbeleer
e7cccf5978
fix: hardcode shell for init
...
resolves #540
2021-03-18 17:14:40 +01:00
Jan De Dobbeleer
c185ebd09c
feat(java): add segment
2021-03-18 17:14:40 +01:00
Jan De Dobbeleer
d3252acf85
feat(path): correct drive root on Windows
...
resolves #534
2021-03-17 13:36:18 +01:00
lnu
fcf1cc30bf
feat: template for time segment
...
example with time
schema updated
2021-03-17 08:14:58 +01:00
Equinox
7b54e88c62
docs: fix various spelling errors
2021-03-15 18:11:16 +01:00
Jan De Dobbeleer
ce5a9d6b76
feat(pwsh): force session to UTF8
2021-03-14 17:55:44 +01:00
Jan De Dobbeleer
6379982c3b
fix: remove log statement
2021-03-14 15:17:46 +01:00
Jan De Dobbeleer
e6247da593
feat: set terminal background color
...
relates to #529
relates to #322
relates to #497
Windors terminal and Visual Studio Code do not work well with inversted
ANSI sequences. This weak allows users to override the Tranparency to
the terminal background color removing black elements in their prompt.
Ideally we remove this once they are on par with other terminals, but
that could take a while.
See https://github.com/microsoft/vscode/issues/111762
and https://github.com/microsoft/terminal/issues/7014
2021-03-14 14:25:27 +01:00
TravisTX
d570673127
fix(git): status colors without display status
2021-03-13 18:32:11 +01:00
Jan De Dobbeleer
ae44f14731
fix(theme): correct icons
...
resolves #515
2021-03-13 08:32:06 +01:00
Jan De Dobbeleer
c2de78326e
feat(pwsh): write debug prompt function
2021-03-11 08:49:38 +01:00
Vincent Bourdon
7984365f1d
refactor: create inline function inWSLSharedDrive
2021-03-10 22:26:17 +01:00
Vincent B
21ecfa47e0
refactor: create inline function inWSLSharedDrive
2021-03-10 22:26:17 +01:00
evilz
500cc5834d
fix: slow git status on wsl2
2021-03-10 22:26:17 +01:00
Jan De Dobbeleer
0b3f4da41e
feat(git): only show HEAD context on display_status=false
2021-03-09 20:50:52 +01:00
evilz
8343e9aee5
feat(dotnet): support fsharp
2021-03-09 14:14:54 +01:00
Jan De Dobbeleer
5055dfc84a
fix(aws): hide default when not set
...
relates to #380
2021-03-08 21:04:56 +01:00
Jan De Dobbeleer
6ee998af15
fix(git): use platform constant
2021-03-07 18:28:25 +01:00
Jan De Dobbeleer
21f97eebd2
fix(git): use exact executable name
...
can conflict with git.cmd
relates to #315
2021-03-07 17:07:25 +01:00
Jan De Dobbeleer
f96f7ecc42
fix(git): align git commands with posh-git
2021-03-07 14:04:32 +01:00
Jan De Dobbeleer
f12ff18385
refactor(test): mapped locations on paths
...
relates to #484
2021-03-05 17:49:47 +01:00
Jan De Dobbeleer
b5af1ebd3b
feat(bash): execution time
2021-03-03 08:30:40 +01:00
lnu
3269a47ee7
feat: use RWMutex for map access
2021-03-01 07:11:01 +01:00
TravisTX
7d785df08a
feat: include folders
2021-02-28 21:05:11 +01:00
Jan De Dobbeleer
41f2c3d5a6
feat: upgrade dependencies
2021-02-28 17:35:57 +01:00
Jan De Dobbeleer
404a123217
feat: use go embed
2021-02-27 16:48:57 +01:00
Jan De Dobbeleer
67f4f2dad0
feat: build with go 1.16
2021-02-27 16:48:57 +01:00
Jan De Dobbeleer
3fbf785bd9
feat: ansi text formats
...
resolves #440
2021-02-27 13:19:44 +01:00
Jan De Dobbeleer
be1ec7bea3
feat(os): show/hide distro name
...
resolves #443
2021-02-26 06:57:34 +01:00
Jan De Dobbeleer
ae8e6d6ccb
refactor: session tests
...
relates to #453
2021-02-25 12:08:59 +01:00
Joseph Petersen
daf324781b
fix(session): use DefaultUserName
2021-02-25 08:14:19 +01:00
Jan De Dobbeleer
58f1789415
feat(session): default user override
...
resolves #447
2021-02-24 10:12:47 +01:00
Jan De Dobbeleer
2ab7ff94d7
feat(git): branch status switch
...
resolves #438
2021-02-19 19:40:13 +01:00
Jan De Dobbeleer
734158a8a3
refactor: universal display_default
...
relates to #380
2021-02-18 19:11:55 +01:00
Jan De Dobbeleer
de498044c9
fix(go): support 1.16
...
resolves #428
2021-02-18 08:49:25 +01:00
Jan De Dobbeleer
c7db86ed4c
fix(language): do not parse version when empty
...
relates to #423
2021-02-16 13:58:12 +01:00
Jan De Dobbeleer
b59b4197dc
chore: rename repository
2021-02-16 09:00:02 +01:00
Jan De Dobbeleer
87af930b75
fix: switch for OSC99
2021-02-15 23:23:44 +01:00
Jan De Dobbeleer
853eaa3890
feat(session): support text template
...
relates to #376
2021-02-15 23:23:44 +01:00
Jan De Dobbeleer
507906009d
feat(battery): support color templates
...
relates to #376
2021-02-15 23:23:44 +01:00
Jan De Dobbeleer
0da40e6aa7
feat(node): version mismatch color
...
resolves #378
2021-02-15 23:23:44 +01:00
Asaf Mahlev
c71c5e86cb
feat: added Mixed path option - displays the path if it's short enough
2021-02-15 17:03:35 +01:00
Jan De Dobbeleer
0d87942fe3
refactor: session segment template properties
2021-02-15 13:36:42 +01:00
lnu
b0562a38b8
feat: transform wsl path to windows folder
2021-02-15 11:14:50 +01:00
lnu
6add3bf2a0
fix: avoid error when duplicating wsl tab
...
use same osc escape code everywhere
detect wsl using env variable
2021-02-15 09:14:17 +01:00
Jan De Dobbeleer
860eeb478a
feat: support osc9;9
...
resolves #409
2021-02-14 14:54:02 +01:00
Jan De Dobbeleer
9457be3990
refactor: hide erorr for languages
...
resolves #400
2021-02-14 13:08:50 +01:00
Jan De Dobbeleer
375184cf0e
feat: allow color templates
...
relates to #397
2021-02-13 19:22:36 +01:00
TravisTX
acfda5c9ca
feat: add display_error to kubectl
2021-02-12 22:14:58 +01:00
Jan De Dobbeleer
3c1c0f87df
feat: sprig template functions
...
relates to #397
2021-02-12 12:59:07 +01:00
Jan De Dobbeleer
b830ae662a
revert: use concurrent map for command caching
...
This reverts commit 509309c412
.
resolves #394
2021-02-11 17:11:02 +01:00
TravisTX
731ebf6f9a
feat: kubectl namespace
2021-02-11 07:06:40 +01:00
Jan De Dobbeleer
bf44a446be
feat: aws segment
2021-02-10 15:15:13 +01:00
Jan De Dobbeleer
440ff16a80
refactor: generic text templating
2021-02-10 15:15:13 +01:00
Jan De Dobbeleer
f4027bd7b3
feat: version file mismatch indication
...
relates to #378
2021-02-07 07:39:50 +01:00
Jan De Dobbeleer
ae10564f2b
refactor: remove MissingCommandText
2021-02-07 07:39:50 +01:00
Jan De Dobbeleer
a3a58feb0e
feat(node): support .nvm files
2021-02-07 07:39:50 +01:00
Carlos Alberto Costa Beppler
3729dee16e
feat: add the User and Host properties to the console title template
2021-02-06 23:05:41 +01:00
Jan De Dobbeleer
1ba666fe97
refactor: align ruby with language
2021-02-04 17:05:46 +01:00
Jan De Dobbeleer
c43cbac284
refactor: generic language support
2021-02-04 17:05:46 +01:00
Jan De Dobbeleer
7e813893ed
feat: support for ruby
2021-02-04 17:05:46 +01:00
Jan De Dobbeleer
509309c412
fix: use concurrent map for command caching
...
relates to #333
2021-01-29 19:31:00 +01:00
lnu
59c81f3a9f
feat: release notes hyperlink for all languages
...
If version enabled and hyperlink enabled(global level), an hyperlink to
the release notes of the current version is generated.
The regex and the url template can be modified in the json template.
2021-01-25 08:55:42 +01:00
Jan De Dobbeleer
7a4d2e175b
refactor: allow color overrides in git status icons
...
resolves #368
2021-01-24 19:30:55 +01:00
Jan De Dobbeleer
2af3e672fd
fix(python): restore CONDA_DEFAULT_ENV
...
resolves #360
2021-01-20 19:09:11 +01:00
lnu
890d0ad0e1
feat: cache compiled regex
...
use mustcompile for regex.
Always use mustcompile which throws a panic
if the regex cannot be compiled.
We call recover to detect the panic and
display an error message to the user.
2021-01-20 13:11:05 +01:00
Jan De Dobbeleer
225b317e32
feat: success/error icon for exit segment
...
resolves #357
2021-01-19 10:28:03 +01:00
Jan De Dobbeleer
b651c9a065
fix(pwsh): provide full config path
...
resolves #355
2021-01-18 20:06:51 +01:00
Jan De Dobbeleer
f6501aeb51
fix: multiline prompt rendering
...
resolves #354
2021-01-18 11:16:31 +01:00
Jan De Dobbeleer
edebc1d465
refactor: align pwsh module with init
2021-01-17 19:25:19 +01:00
Jan De Dobbeleer
e26326001e
fix: ensure correct encoding for pwsh
...
resolves #352
2021-01-17 19:25:19 +01:00
TravisTX
9f022d7ba5
feat: envvars in console title
2021-01-15 22:36:29 +01:00
Jan De Dobbeleer
d1be7ac1d2
feat: add known Python extensions/folder
2021-01-15 19:41:09 +01:00
Jan De Dobbeleer
6ed5d26610
refactor: re-introduce context for language
2021-01-15 19:24:58 +01:00
Jan De Dobbeleer
2abcd82f45
refactor: use language context to display segment
...
relates to #239
2021-01-15 19:24:58 +01:00
Jan De Dobbeleer
890f9cde1b
refactor(language): remap context to files
2021-01-15 19:24:58 +01:00
lnu
31c77af58f
fix: convert exitErr to commandError if runCommand fails
...
exitError must not exit the runCommand helper, only commandError
safety check when casting in segment_language
2021-01-15 09:17:07 +01:00
lnu
f8b28f01ba
feat: add console title in --debug
2021-01-15 07:29:52 +01:00
TravisTX
0761c04286
feat: use tilde in console title
2021-01-14 07:07:15 +01:00
lnu
866c44e42d
feat: add hyperlink rendering
...
An hyperlink can be added using markdown syntax and will be detected by the engine.
Initial implementation for path segments.
2021-01-12 21:37:41 +01:00
lnu
b1e2a52a04
fix: lock around shared map write
2021-01-10 12:17:01 +01:00
Jan De Dobbeleer
82b97bc3b9
refactor(git): count stash using file content
...
relates to #305
2021-01-09 21:17:59 +01:00
Jan De Dobbeleer
780722a371
refactor(powershell): use PSDrive path
...
resolves #329
2021-01-09 20:00:39 +01:00
Jan De Dobbeleer
667151fe28
refactor: remove additional git calls
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
3a86f49b72
perf: use strings.Builder instead of buffer
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
5d6d64508d
refactor: fetch git enabled context via path
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
c2bc901a41
refactor: command caching without leaking
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
8a925b80a3
refactor: use correct formatting
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
836763c002
refactor: run commands natively
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
598984b4cb
refactor: check for availability of posh-git iso cmdlet
...
resolves #325
2021-01-07 13:31:13 +01:00
lnu
c57368ce7d
fix: avoid crash on system with no battey in battery segment
2021-01-05 13:06:54 +01:00
Jan De Dobbeleer
a38fe214c3
fix: do not fetch git stash every time
...
relates to #305
2021-01-04 18:58:58 +01:00
Laurent Nullens
82635cd5ec
fix: wrong check when calling --debug with ignore_folders set
...
wrong check when calling --debug with ignore_folders set
2021-01-04 16:14:07 +01:00
TravisTX
94ae5ed0b4
fix: folder style not using folder_separator_icon
2021-01-03 18:25:42 +01:00
lnu
9822227a5e
docs: display_mode 'never' removed
2021-01-01 08:46:22 +01:00
Jan De Dobbeleer
11350c7347
feat: show no commits context
2020-12-31 20:34:05 +01:00
Jan De Dobbeleer
8c68b89790
refactor: remove DisplayModeNever
2020-12-31 20:34:05 +01:00
lnu
abfbb27765
fix: don't check language version in Enabled()
...
fix: align dotnet segment with other languages
feat: missing command text + json schema updated
chore: doc updated
perf: cache executable path
chore: not supported version icon updated(previus one was unreadable)
2020-12-31 16:59:13 +01:00
Jan De Dobbeleer
07ac2c35cd
refactor: display powerline correct in --debug
2020-12-31 14:04:38 +01:00
Jan De Dobbeleer
d9d2430ae9
fix: wait for command to complete
...
without wait(), the *ProcessState is nil, meaning we can't access
the ExitCode(). On Windows, calling wait() introduces a timeout
which makes things run slower, which is why we only call wait()
in case of an error. That should not be the main use-case.
relates to #285
2020-12-31 13:29:42 +01:00
Laurent Nullens
1bc52c3c48
fix: exit code always equal 0
...
The exit code was not captured correctly since the move to the new bootstrap system.
It never displays the actual exit code.
2020-12-31 12:06:59 +01:00
Jan De Dobbeleer
4c771d3e15
fix: add timeout to http requests
...
this caused a serious delay on windows
2020-12-31 09:47:32 +01:00
Jan De Dobbeleer
5fa33f4c4f
fix: use commandError on cmd failure
...
relates to #285
2020-12-31 09:06:13 +01:00
Jan De Dobbeleer
e0a4482d4b
fix: parse error message when running command
2020-12-30 20:10:42 +01:00
TravisTX
23eb73cd69
fix: fix lastexitcode
2020-12-30 16:30:51 +01:00
TravisTX
c9075268ad
refactor: switch to original jsonc library
2020-12-30 08:36:13 +01:00
Jan De Dobbeleer
0e7849cde3
fix: msys2 compatibility
...
resolves #281
2020-12-29 21:53:07 +01:00
lnu
9013a5b3d4
chore: doc updated(Get an editor)
2020-12-29 21:47:04 +01:00
lnu
0fcf7cc8be
feat: replace debug information with a new layout
...
Similar as Starship timings command
2020-12-29 21:47:04 +01:00
Laurent Nullens
8c812812ee
fix: *env.args.Shell not set in getShellName(cache never used)
...
*env.args.Shell was never set in getShellName.
2020-12-27 22:38:03 +01:00
Jan De Dobbeleer
9e7d901fb6
feat: set console title with template
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
b427a0e8a4
refactor: cache shell name
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
85ee0bb0c0
refactor: typo in EOL
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
d9cf3b0e40
fix: only clear eol on Powershell
...
related to #277
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
59282c088d
refactor: separate ansi formats
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
e9c65948c1
refactor: separate consoletitle logic
2020-12-27 18:23:40 +01:00
Laurent Nullens
969b54420a
fix: avoid emitting empty ansi color codes
...
When there's no color override an empty string is emitted.
The fix reduces the emitted output by 40% approximatively with the default theme(1604 -> 1138).
2020-12-27 11:39:05 +01:00
Jan De Dobbeleer
ac5dd0f76b
refactor: use personal fork of jsonc
2020-12-26 14:20:10 +01:00
Jan De Dobbeleer
3c7b3447d5
refactor: upgrade distatus/battery
2020-12-26 14:20:10 +01:00
Jan De Dobbeleer
9a47ed71b7
refactor: upgrade gookit/color
2020-12-26 14:20:10 +01:00
Jan De Dobbeleer
1e330b90ee
refactor: use go-ps from origin
2020-12-26 14:20:10 +01:00
TravisTX
1cfed78576
feat: allow custom folder separator for all styles
2020-12-26 08:30:29 +01:00
Jan De Dobbeleer
ed2eac8e12
feat: adjust source code layout
2020-12-25 20:11:24 +01:00