Commit graph

52 commits

Author SHA1 Message Date
L. Yeung 2230e2b695 fix(pwsh): avoid Test-Path error on "no config" 2022-05-27 15:41:28 +02:00
Jan De Dobbeleer 74b8a094e7 fix(pwsh): export outside functions as global
relates to #2318
2022-05-25 20:33:27 +02:00
Jan De Dobbeleer b6ac0b3904 fix(cmd): expose error in transient prompt
resolves #2327
2022-05-25 13:17:18 +02:00
Jan De Dobbeleer f3737cd91d fix(pwsh): move functions before module declaration
relates to #2318
2022-05-25 06:12:08 +02:00
Ajay Mehta 9e13f1bba1
fix(pwsh): default stack count to 0 2022-05-22 22:08:21 +02:00
Jan De Dobbeleer eb11aa9081 fix(pwsh): get stack count correctly 2022-05-22 12:08:49 +02:00
L. Yeung b3b4f473b5 feat(zsh): trigger a tip check only on a space key input 2022-05-20 18:00:17 +02:00
L. Yeung f84dac27e2 fix(pwsh): detect debug context correctly 2022-05-20 06:54:00 +02:00
Jan De Dobbeleer 467428f514 fix(zsh): reintroduce self_insert for tooltips
resolves #2289
2022-05-19 20:36:12 +02:00
L. Yeung e041c23fe1 refactor(pwsh): check history id instead of command line 2022-05-16 18:08:43 +02:00
Jan De Dobbeleer 6a7f03eb5b fix(cli): do not fail on invalid terminal width
resolves #2253
2022-05-11 18:57:44 +02:00
Jan De Dobbeleer d7ccc20cf1 fix(pwsh): add shell value directly
relates to #2234
2022-05-08 19:34:17 +02:00
L. Yeung 88dec08685 feat(cmd): set POSH_THEME env in init script 2022-05-08 18:50:45 +02:00
Jan De Dobbeleer 49e8725f66 fix(pwsh): populate GitStatus correctly
Resolves #2178
2022-04-28 16:29:58 +02:00
Jan De Dobbeleer 2b92304c77 fix(pwsh): validate existence of global variable 2022-04-27 21:30:24 +02:00
L. Yeung fccdfe5306 refactor: align tooltip behaviors 2022-04-27 20:21:08 +02:00
L. Yeung 9606d5a105 fix(pwsh): use more reliable native invocation
Rewrite logic of passing arguments in `Start-Utf8Process`:

- Use ArgumentList in PowerShell 6.1 and later.
- Use a manual escaping in lower versions.
2022-04-27 20:21:08 +02:00
L. Yeung 4d048b2658 fix(pwsh): avoid deadlock in Start-Utf8Process
Resolves #2151
2022-04-26 20:22:40 +02:00
L. Yeung a9671df378 refactor(pwsh): use dynamic module for init 2022-04-26 20:22:40 +02:00
L. Yeung 8d2dddb08d fix(shell): wrap path with single quotes 2022-04-26 12:22:55 +02:00
Jan De Dobbeleer 00aea0decd fix(pwsh): initialize globals before usage
resolves #2145
2022-04-25 07:09:51 +02:00
L. Yeung c37733e3ec refactor(pwsh): purify global scope and environment 2022-04-21 13:05:52 +02:00
Jan De Dobbeleer 9214b88475 feat(shell): add version
resolves #2108
2022-04-20 19:24:47 +02:00
Jan De Dobbeleer bb9b6197d5 feat: support rbash (strict mode)
resolves #2109
2022-04-20 07:09:09 +02:00
Jan De Dobbeleer 6c36e9adf3 fix(cmd): set as last filter priority
resolves #2104
2022-04-17 20:24:57 +02:00
Jan De Dobbeleer cf6c7b230d fix(pwsh): count prompt lines correctly
resolves #2081
2022-04-16 13:21:19 +02:00
Jan De Dobbeleer 3fcd4c52b1 fix(pwsh): use correct workdir for any location 2022-04-16 13:21:19 +02:00
Jan De Dobbeleer 23c2c383fe fix(posh-git): evaluate to true 2022-04-15 23:46:48 +02:00
Jan De Dobbeleer 746b9ad77e revert(posh-git): add switch to avoid calling git status
resolves #2086
2022-04-15 21:21:16 +02:00
Jan De Dobbeleer ebce0f30f5 feat: init for Nushell 2022-04-10 19:52:08 +02:00
lnu a31d718fcb fix(pwsh): call convert-path before setting workingdirectory
Only for FileSystem psprovider
2022-04-07 09:25:56 +02:00
Jan De Dobbeleer f937f28545 refactor: align debug functionality cross shell 2022-04-07 07:38:44 +02:00
lnu 3a15594410 fix(pwsh): set working directory when starting process 2022-04-06 10:50:46 +02:00
Jan De Dobbeleer 46992bc7e0 fix(pwsh): write debug correctly 2022-04-05 19:48:07 +02:00
Jan De Dobbeleer f9efe17da3 fix(fish): re-render rprompt when no tooltip 2022-04-05 08:12:05 +02:00
Jan De Dobbeleer af7db43889 fix(pwsh): do not tweak posh-git prompt settings 2022-03-31 22:37:10 +02:00
Jan De Dobbeleer 749eb6cf26 feat: enable posh-git on $GitPromptSettings.EnablePromptStatus
relates to https://github.com/dahlbyk/posh-git/issues/883
2022-03-31 20:06:20 +02:00
Jan De Dobbeleer c7b681a2b5 fix(pwsh): trim trailing backslash from paths
relates to #2009
2022-03-31 07:23:01 +02:00
Jan De Dobbeleer f466f919e3 fix(pwsh): do not trim output
resolves #2010
2022-03-31 07:23:01 +02:00
Jan De Dobbeleer 61897b78ef refactor(pwsh): print stderr separately 2022-03-30 22:59:15 +02:00
Jan De Dobbeleer d77e824585 fix(pwsh): export Start-Utf8Process as global 2022-03-30 22:59:15 +02:00
Jan De Dobbeleer d823b55e90 feat: remove forced UTF8
relates to #576
2022-03-30 19:17:41 +02:00
Jan De Dobbeleer 5711e431a4 feat(pwsh): move Set-PoshContext to global variable scope
resolves #1988
2022-03-27 10:09:20 +02:00
mattcargile 13aa6c2b99 feat: add prefix to omp.ps1 prompt variables
"OMP" string added to `$global:ERRORCODE` and
`$global:EXECUTIONTIME` variables within the init
script for powershell (e.g. omp.ps1 )
2022-03-27 09:43:13 +02:00
Jan De Dobbeleer ee4c4dfe34 fix(fish): export POSH_THEME as env var 2022-03-27 09:37:23 +02:00
Jan De Dobbeleer 112043f805 feat: simpler cli interface 2022-03-25 19:08:29 +01:00
Jan De Dobbeleer 8b5c2a35ca feat(transient): color template support 2022-03-25 08:54:56 +01:00
Jan De Dobbeleer e1a1febc79 feat(pwsh): expose errorcode to transient prompt 2022-03-25 08:54:56 +01:00
Jan De Dobbeleer 143074e0a7 feat(fish): transient prompt 2022-03-23 19:53:59 +01:00
Jan De Dobbeleer 340c851743 feat(fish): tooltip support 2022-03-23 19:53:59 +01:00