Commit graph

251 commits

Author SHA1 Message Date
lnu cdd4090c03 fix: export-poshtheme ~ issue
Fix regression introduced by previous commit(~)
2021-05-28 07:30:38 +02:00
lnu 46bdc4537d fix: export-poshtheme issue with relative path
Path.GetFullPath used to resolve full or relative paths
2021-05-28 06:52:46 +02:00
Jan De Dobbeleer 79fa990205 feat: env vars in templates
resolves #743
2021-05-27 22:06:33 +02:00
lnu 0075ac229c fix: escape backtick
in zsh or bash, text between backtick was interpreted
2021-05-27 21:41:46 +02:00
Jan De Dobbeleer 3b56c24b69 fix: add not charging state for battery info 2021-05-27 12:50:53 +02:00
lnu 2eb45b5863 fix: escape \ from segment value when in bash
fix #738
2021-05-25 22:25:40 +02:00
Jan De Dobbeleer 2cf288e46c fix: ignore 0 size terminals 2021-05-25 19:12:18 +02:00
Jan De Dobbeleer b9906b2f7a feat: hide rprompt when the prompt is too large
relates to #715
2021-05-23 07:28:10 +02:00
Jan De Dobbeleer 5e9b04ae2f revert: hide rprompt when the prompt is too large
This reverts commit a8d4e51d54.
2021-05-22 21:20:54 +02:00
Jan De Dobbeleer a8d4e51d54 feat: hide rprompt when the prompt is too large
relates to #715
2021-05-22 20:25:43 +02:00
Jan De Dobbeleer b67f625740 fix(bash): escape entire rprompt
resolves #717
2021-05-21 22:12:55 +02:00
Jan De Dobbeleer 50473767a7 chore(ci): replace golint with revive 2021-05-21 20:33:11 +02:00
Jan De Dobbeleer ed610c13ee feat(az): display account info 2021-05-21 20:33:11 +02:00
Jan De Dobbeleer c3b6f31d09 feat(pwsh): disable module support by default 2021-05-21 20:33:11 +02:00
Jan De Dobbeleer 894b84fa85 fix(pwsh): get filesystem path for configs
resolves #715
2021-05-21 20:33:11 +02:00
Jan De Dobbeleer 5f045431cf fix(executiontime): round values logically 2021-05-21 08:17:36 +02:00
Jan De Dobbeleer 8642b7bfd9 feat: round timing style 2021-05-20 19:55:46 +02:00
Jan De Dobbeleer 676da9e4d1 fix: set conda env var
relates to #133
2021-05-20 19:27:24 +02:00
Jan De Dobbeleer 7a85ee30d7 fix(osc99): append \ when inside a root directory
resolves #724
2021-05-20 19:27:24 +02:00
Jan De Dobbeleer 9999260e9e feat(git): disable status by default
resolves #723
2021-05-20 19:27:24 +02:00
Jan De Dobbeleer 4a16c3fc6c refactor(pwsh): postfix invoke-expression
relates to #708
2021-05-18 20:43:25 +02:00
Jan De Dobbeleer 30bccb06d2 fix: adjust fallback theme layout 2021-05-18 20:43:25 +02:00
Jan De Dobbeleer b623c5f190 feat: print config error 2021-05-18 20:43:25 +02:00
Jan De Dobbeleer 766dc1ac8b
fix: set powerline env var
resolves #133
2021-05-16 19:23:05 +02:00
Micah Rairdon 36feb76f20 feat: azure devops support for git upstream icons 2021-05-15 17:41:15 +02:00
Jan De Dobbeleer 4030c32279 feat: add dart support 2021-05-14 21:28:16 +02:00
Jan De Dobbeleer d96cb7989a refactor: add language tests 2021-05-14 21:28:16 +02:00
Jan De Dobbeleer 5d5d7f9e8a feat(julia): hyperlink support 2021-05-14 13:45:38 +02:00
Jan De Dobbeleer 8f473df62f feat: support crystal language 2021-05-14 13:45:38 +02:00
lnu 6671ed068c feat: export-poshtheme to clipboard if no file path provided 2021-05-06 11:37:07 +02:00
Jan De Dobbeleer 3c5129275e feat: join segments when omitting diamonds
relates to #697
2021-05-04 10:33:34 +02:00
Jan De Dobbeleer 248afec9fa feat: better mapped locations layout 2021-05-02 14:35:01 +02:00
gitolicious 52b66d1e5b
feat: add OS template property 2021-04-24 19:31:56 +00:00
Jan De Dobbeleer fb57ef18b6 feat: display message on az update needed
resolves #669
2021-04-22 20:23:34 +02:00
lnu 44ac09d356 fix(battery): disable segment when no batteries 2021-04-22 07:02:22 +02:00
Jan De Dobbeleer 3b7b854fdc fix(pwsh): only clear console after block write 2021-04-21 21:25:59 +02:00
Jan De Dobbeleer b11b69f0e8 refactor: ansi module cleanup 2021-04-21 19:54:43 +02:00
Jan De Dobbeleer c24ca82f17 feat: newline as part of block
this deprecates the "newline" block and favours using the newline
property on the Block component. For backwards compatibility we'll
keep recognizing the newline block for the time being.

resolves #607
2021-04-21 19:54:43 +02:00
Jan De Dobbeleer 7ad764ceee fix(ytdm): default to localhost IP
resolves #639
2021-04-20 21:37:09 +02:00
Chris Bargren f7841eb43c fix(zsh): store exit code first in precmd hook
Addresses an issue causing exit code segments to incorrectly report an
exit code of `0`
2021-04-20 07:03:28 +02:00
Jan De Dobbeleer 1f25cd4b1c fix(node): stop when yarn is detected 2021-04-18 07:18:34 +02:00
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