Commit Graph

36 Commits

Author SHA1 Message Date
3a0c08cada Return the exit code to ensure other prompt_commands work with hishtory, see #247 2024-10-03 06:56:15 -07:00
095f4a4741 Add full fix for #215 along with a test to reproduce the issue (#218) 2024-06-08 20:50:45 -07:00
e59803db2b Fix duplicate pre-saving issue reported in #215 (#217) 2024-06-02 20:07:19 -07:00
c01daea32b Revert "Fix duplicate pre-saving issue reported in #215"
This reverts commit 336b331687.
2024-06-02 19:29:54 -07:00
336b331687 Fix duplicate pre-saving issue reported in #215 2024-06-02 19:29:00 -07:00
0787840a10 Wire through the shell name into AI suggestions so that we can get more precise AI suggestions for the current shell 2024-02-19 12:12:04 -08:00
427ba01405 Remove unnecessary sub-shell, since we just need a truthy value here 2024-02-18 18:13:38 -08:00
77313dfb48 Add better color support detection, for #134 2023-12-31 13:00:56 -08:00
1edb6642a9 Disable tab completions for bash since they rely on the user having bash completions installed, which not everyone does 2023-12-20 22:23:40 -08:00
054744248c Enable hishtory shell completions by default 2023-12-19 19:12:04 -08:00
3a49c9c11f Make hishtory work with set -o nounset for bash and zsh, for #142 (#144) 2023-12-10 09:14:12 -08:00
5bf734606f Swap to using hishtory getTimestamp to get the precise timestamp since this gives us a precise timestamp even on MacOS 2023-11-19 09:41:05 +01:00
4bcc5fb335 Periodically call query endpoint and retrieve data to ensure that the local DB is always reasonably up to date 2023-10-15 12:29:50 -07:00
dc19fa3a17 Roll-forward "Make history entry start times more precise (down to the nanosecond) to make the recorded runtime more accurate, since currently start times are rounded to the nearest second. Though
note that 'date' on MacOS doesn't support %N, so this doesn't apply to MacOS"

This reverts commit 6281ae0601.
2023-10-10 07:44:15 -07:00
6281ae0601 Revert "Make history entry start times more precise (down to the nanosecond) to make the recorded runtime more accurate, since currently start times are rounded to the nearest second. Though note that 'date' on MacOS doesn't support %N, so this doesn't apply to MacOS"
This reverts commit d404a73c9b since it appears to be causing test failures for linux
2023-10-07 20:05:21 -07:00
d404a73c9b Make history entry start times more precise (down to the nanosecond) to make the recorded runtime more accurate, since currently start times are rounded to the nearest second. Though note that 'date' on MacOS doesn't support %N, so this doesn't apply to MacOS 2023-10-07 14:47:54 -07:00
0b57034c39 Revert "Revert all commits since v0.223 to enable me to release a patch on top of v0.223"
This reverts commit 68ed9f2d5d.
2023-09-29 18:21:23 -07:00
68ed9f2d5d Revert all commits since v0.223 to enable me to release a patch on top of v0.223 2023-09-28 22:15:30 -07:00
fdec51bd14 Update presaving for bash to use history 1 rather than BASH_COMMAND to ensure we don't log bash functions 2023-09-28 22:14:53 -07:00
6d5a86a8bb Revert all commits since v0.223 to enable me to release a patch on top of v0.223 2023-09-28 21:49:37 -07:00
d14dc1cd50 Update presaving for bash to use history 1 rather than BASH_COMMAND to ensure we don't log bash functions 2023-09-26 19:41:12 -07:00
1d7ba41289 Avoid performance hit caused by pre-saving by presaving in the background 2023-09-17 14:11:44 -07:00
25ec191f1a Implement pre-saving feature to ensure that long-running/non-terminating commands are saved in hishtory 2023-08-27 14:24:59 -07:00
a390bacf89 Support multi-line commands from zsh to fix #34 2022-11-19 22:27:08 -08:00
6f53fdd41e Better handling for control-c with control-r search in the shell + update bubbletea 2022-11-11 16:42:07 -08:00
c1d17842c4 Write the config fragment to the bash_profile for MacOs to fix #14 2022-11-03 21:01:57 -07:00
72ff95ab8b Comment out the foreground save that led to awful latency 2022-11-02 19:46:02 -07:00
41586ba034 Remove the dedicated test shell scripts and instead auto-generate them 2022-10-23 17:35:02 -07:00
710e4dd901 control-r for bash 2022-10-17 20:18:28 -07:00
b5907379ac Export HISTTIMEFORMAT so that it is available to hishtory for usage 2022-09-27 22:25:57 -07:00
a1d6aa8257 Remove incorrect comment line from previous commit 2022-09-27 21:22:35 -07:00
bf66f9f4fe Rename precommand and postcommand and ensure that hishtory doesn't stomp any existing PROMPT_COMMAND 2022-09-27 21:10:45 -07:00
76f12ab64a Swap to getting date in seconds since BSD date doesn't support nanos 2022-04-18 22:36:57 -07:00
aae18d44b9 Working basic zsh integration (with lots of failing tests that are currently getting skipped) 2022-04-17 19:54:17 -07:00
6d84402bce first bit of advanced query support 2022-04-07 22:53:39 -07:00
e2acc6612a well, it builds :D but still failing all the tests 2022-04-04 22:07:01 -07:00