Commit Graph

872 Commits

Author SHA1 Message Date
Chris Antos
173b86fbc8 Fix another pre-existing bug in the hg prompt.
If the hg program is not found, then there used to be a Lua script
error.  I fixed that in the earlier commit in this PR.  But the fix
was incomplete, and the hg prompt still appended " ()" instead of
not appending anything (which is how the svn prompt behaves when
the svn program is not found).
2025-09-14 10:34:23 -07:00
Chris Antos
8ec4789e35 Fix cmderdev/cmder#3020; hg prompt is slow.
Cmder's hg prompt didn't use async prompt filtering yet.
Cmder's svn prompt only used async prompt filtering if a special config
variable was set (the commit which contributed it seems to have
misunderstood the git config settings for the git async prompt).

This commit makes the following changes:
1.  Adds async prompt filtering for hg.
2.  Makes async prompt filtering for svn the default.
3.  Removes the prompt_overrideSvnStatusOptIn variable.
4.  Fixes a bug where any errors during `svn status` in the svn prompt
    accidentally show up in the terminal.
5.  Fixes a bug where any errors during `hg branch` in the hg prompt
    turn into Lua errors.
6.  Simplifies the code for colors in the hg and svn prompts.
7.  Clean up the svn prompt code and make it consistent with the git
    and hg prompt code.
2025-09-04 10:41:08 -07:00
David Refoua
05552dc51c added a comment 2025-07-16 04:18:03 +03:30
David Refoua
c6bfd6f276 Minor refactors to Git status and branch functions in git-prompt.sh
- `getGitStatusSetting`: use local variables, improve regex pattern, use return status codes instead of echo strings
- `getSimpleGitBranch`: better error handling, use local variables
- Simplified conditional checks
2025-07-16 04:16:47 +03:30
David Refoua
1d51c4f402 make bash prompt more consistent;
* display λ in grey and bold
* fix a bug where an uneeded colon would be prepended to the tab title (when MSYSTEM is unset)
2025-07-15 21:02:12 +03:30
David Refoua
bb14aeace5 merge with master 2025-07-15 20:37:45 +03:30
David Refoua
aff4ad259f fix color values and names mismatch in comments 2025-07-15 20:25:59 +03:30
David Refoua
76c5b9e116 resolve conflicts 2025-07-15 19:31:41 +03:30
David Refoua
cb76868411 Import from upstream git-prompt.sh: user-specific bash completion scripts
Source: 061dbfe92b
2025-07-15 19:29:16 +03:30
David Refoua
abcb1a1aa1 display MSYSTEM if set; fix indentation; add comment 2025-07-15 19:26:49 +03:30
DRSDavidSoft
e3fc1a122d Merge branch 'master' into development 2025-04-08 09:17:41 +00:00
DRSDavidSoft
1737bcdeb7 ⬆️ Update dependencies (git-for-windows v2.49.0.windows.1, clink v1.7.14, clink-completions v0.6.2) 2025-04-03 13:43:06 +00:00
Dax T. Games
d349f57e78 add executionpolicy bypass 2025-01-05 20:19:40 -05:00
Dax T Games
980083fb8c Merge pull request #23 from daxgames/more_speed_2
Optimizations for improving speed
2025-01-05 12:15:45 -05:00
David Refoua
b140db4617 Merge branch 'development' of https://github.com/cmderdev/cmder into development 2024-11-14 00:13:38 +03:30
David Refoua
d15e7ac69f cleanup 2024-11-14 00:08:31 +03:30
David Refoua
126347025f cleanup 2024-11-14 00:01:29 +03:30
David Refoua
7ceacb63dd respect PATHEXT instead of hardcoding our own value
* support other path extensions as well (e.g. `.py` commonly used)
2024-11-14 00:00:53 +03:30
David Refoua
510178852d add missing qualified dir
https://github.com/cmderdev/cmder/pull/1961
2024-11-13 23:58:11 +03:30
David Refoua
4d15730d05 cleanup 2024-11-13 23:14:49 +03:30
DRSDavidSoft
cc40343157 Merge branch 'master' into development 2024-11-13 19:38:51 +00:00
David Refoua
25ccfeed77 prevent warnings if the dir does not exist
https://github.com/cmderdev/cmder/issues/121#issuecomment-654171568
2024-11-13 23:08:13 +03:30
DRSDavidSoft
940cadc526 Merge branch 'master' into development 2024-10-17 23:48:28 +00:00
David Refoua
42315d8cec enable /d flag in excd by default 2024-10-18 03:18:17 +03:30
David Refoua
9b466e3963 merge changes from master 2024-10-17 20:03:45 +03:30
David Refoua
c6dbb89129 Merge branch 'master' of https://github.com/cmderdev/cmder 2024-10-17 20:00:32 +03:30
David Refoua
1cfba25beb fix conflict 2024-10-17 20:00:21 +03:30
David Refoua
2007baef6e Updates to 3 vendored dependencies 2024-10-17 19:52:36 +03:30
David Refoua
4740b836f3 adjust indentation and merge from main 2024-10-17 19:46:22 +03:30
David Refoua
e220d114b2 add notes on what shim actually is 2024-10-17 19:43:14 +03:30
DRSDavidSoft
4204faa063 ⬆️ Update dependencies (git-for-windows v2.47.0.windows.1, clink v1.7.3, clink-completions v0.6.0) 2024-10-16 13:42:04 +00:00
DRSDavidSoft
fbd4c0422c Merge branch 'master' into development 2024-10-14 11:10:56 +00:00
David Refoua
540532f126 make library comments consistent and clean up code 2024-10-14 14:40:21 +03:30
DRSDavidSoft
e84f2ff365 Merge branch 'master' into development 2024-07-27 17:34:23 +00:00
Stan West
b56a6d43cb Use single quotes inside double quotes 2024-07-26 20:24:12 -04:00
DRSDavidSoft
e457afa8d1 Merge branch 'master' into development 2024-05-31 15:06:45 +00:00
Dax T. Games
e850f8241d add vendor/start_git_mintty.cmd 2024-05-30 16:37:37 -04:00
Dax T. Games
db3889d5e5 remove vendor/start_git_mintty.cmd 2024-05-30 16:27:43 -04:00
Dax T. Games
881938ed18 Update Windows Terminal default settings and version 2024-05-30 16:23:51 -04:00
DRSDavidSoft
45fd0c2666 ⬆️ Update dependencies (git-for-windows v2.45.1.windows.1, clink v1.6.14, clink-completions v0.5.2) 2024-05-29 13:40:37 +00:00
DRSDavidSoft
546d921e58 Merge branch 'master' into development 2024-05-28 13:49:59 +00:00
David Refoua
5145a15139 display git improper version string as debug 2024-05-28 17:19:47 +03:30
DRSDavidSoft
92c662de2f Merge branch 'master' into development 2024-05-23 18:29:27 +00:00
David Refoua
92419a48fc log the executable path for improper git 2024-05-23 21:59:16 +03:30
David Refoua
aac7cfc47a Fix GitHub action (merge master into development) 2024-05-21 11:58:26 +03:30
David Refoua
c9b77f618a enable match.expand_envvars
This is part of the "Enhanced default settings" by Clink and a very useful feature
2024-05-20 10:57:51 +03:30
Dax T. Games
6e213115fe Merge branch 'more_speed_2' of https://github.com/daxgames/cmder into more_speed_2 2023-11-27 10:01:01 -05:00
Dax T. Games
f8aa7feb1f PR - Requested Changes 2023-11-23 07:10:59 -05:00
David Refoua
8025b5baa2 Merge branch 'development' into windows_terminal 2023-11-21 03:43:31 +03:30
David Refoua
9a4041941e Merge pull request #2896 from daxgames/more_speed_2
Applying the more speed branch to the development
2023-11-21 03:41:20 +03:30