Commit graph

32 commits

Author SHA1 Message Date
Jan De Dobbeleer 4fa407d15e refactor: better use of POSH_THEME 2024-07-25 21:03:10 +02:00
Jan De Dobbeleer 4a1aa2a7b4 refactor(init): enable features automatically 2024-07-25 21:03:10 +02:00
Jan De Dobbeleer cdfd249b28 fix(bash): remove rprompt support
BREAKING CHANGE: rprompt is no longer supported for bash due to too many
side effects that have no solution in sight.
2024-07-22 09:22:10 +02:00
L. Yeung 2585b90946 refactor(shell): normalize identifiers in initialization scripts 2024-07-15 06:59:13 +02:00
L. Yeung d5ec96fef0 fix(bash): cache pipe status correctly 2024-07-09 06:48:05 +02:00
Jan De Dobbeleer a65abd25a5 fix(bash): native rprompt
resolves #5221
2024-07-08 16:53:01 +02:00
L. Yeung 7f418d7c2d fix(shell): prioritize $? for consistent status in Bash/Zsh 2024-06-20 12:54:03 +02:00
Jan De Dobbeleer f817acf963 refactor(bash): use default value for COLUMNS
relates to #5102
2024-06-17 15:59:29 +02:00
Jan De Dobbeleer dc2915c72c fix(bash): only use COLUMNS when it's present
relates to #5090
2024-06-17 07:58:58 +02:00
Jan De Dobbeleer 4ed8104d2d fix(bash): get terminal width from COLUMNS
resolves #5090
2024-06-15 17:41:59 +02:00
Jan De Dobbeleer 129c41ba34 feat(upgrade): auto upgrade 2024-06-14 17:58:48 +02:00
Jan De Dobbeleer f078d13cca fix(bash): override pipestatus when BP_PIPESTATUS is greater or equal 2024-01-10 08:07:39 +01:00
Jan De Dobbeleer f47da9592f feat(exit): implement pipestatus
BREAKING CHANGE: exit segment is now called status segment.

The exit keyword is now deprecated and will be removed in a future
release. Please use the status keyword instead:

```diff
"segments": {
    {
-     "type": "exit"
+     "type": "status"
    }
}
```

Additionally, the status segment configuration has changed to support
$PIPESTATUS. You can include a status template to customize the
rendering of each individual status code (supported in fish, zsh and
bash).

```json
"segments": {
    {
        "type": "status",
        "properties": {
            "status_template": "{{ if gt .Code 0 }}\uf071{{ else }}\uf00c{{ end }}",
            "status_separator": " "
        }
    }
}
```

In case no $PIPESTATUS is available, the status segment will fall back
to the exit code of the last command using the status template
for rendering.

The `{{ .Meaning }}` property has been marked as deprecated and can be
replaced with `{{ reason .Code }}`, allowing it to be reused in
cross segment templates.

resolves #4070
2023-07-24 11:46:33 +02:00
krzysdz 6544815766
feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00:00
Jan De Dobbeleer 972ebd4805 fix(debug): output shell and version 2023-03-26 17:33:03 +02:00
Jan De Dobbeleer 393f30a082 feat: weekly upgrade notice 2023-03-03 20:28:41 +01:00
Jan De Dobbeleer 441d1ff0af fix(cursor): only get when needed
resolves #3446
2023-02-04 11:37:28 +01:00
Jan De Dobbeleer 221b2d7d51 feat(shell): restore line logic for zsh and bash 2023-02-02 19:47:14 +01:00
Jan De Dobbeleer bc21ba3aef fix(shell): do not fetch cursor position using ANSI
resolves #3434
2023-02-01 10:42:04 +01:00
Jan De Dobbeleer db557e4b31 fix(warp): do not get cursor position
resolves #3431
2023-01-31 18:48:17 +01:00
L. Yeung ceb869671e refactor(shell): use local variables in init scripts for Bash/Zsh 2023-01-31 06:45:03 +01:00
Jan De Dobbeleer a0931f84a4 fix(init): support Midnight Commander
resolves #3415
2023-01-29 13:57:48 +01:00
Jan De Dobbeleer 481878262b feat: ignore empty header line on clear
relates to #3388
2023-01-25 16:14:41 +01:00
Jan De Dobbeleer 0d8b8591cc fix(pid): cache PID from init
resolves #3096
2022-11-19 22:39:09 +01:00
Jan De Dobbeleer 17572d7f3f feat(context): allow context setting where possible
relates to #2776
2022-09-23 21:19:47 +02:00
Jan De Dobbeleer babe425f3f fix(get): add shell 2022-09-23 08:46:12 +02:00
L. Yeung 83c1af63b4 refactor(bash): simplify timer 2022-08-09 11:19:43 +02:00
L. Yeung db8eac7c5d fix(shell): quote paths properly in init scripts 2022-08-09 06:59:35 +02:00
L. Yeung 8d2dddb08d fix(shell): wrap path with single quotes 2022-04-26 12:22:55 +02:00
Jan De Dobbeleer 9214b88475 feat(shell): add version
resolves #2108
2022-04-20 19:24:47 +02:00
Jan De Dobbeleer 112043f805 feat: simpler cli interface 2022-03-25 19:08:29 +01:00
Jan De Dobbeleer 3c0c350564 refactor: separate shell init 2022-03-22 07:56:06 +01:00
Renamed from src/engine/init/omp.bash (Browse further)