Commit graph

791 commits

Author SHA1 Message Date
Martin Dvorak d2c3b50c69 Merge branch 'master' into dev/2.6.0 2022-12-10 20:30:48 +01:00
Martin Dvorak b6b27657d9 2021 > 2022. 2022-12-10 20:20:52 +01:00
Martin Dvorak be59f8cf5a
MPR is package manager. 2022-01-09 18:05:32 +01:00
Martin Dvorak d6cbab6722
Fixing MPR installation link. 2022-01-09 18:05:02 +01:00
Martin Dvorak a35dd926dd
Minor polishing of MPR package manager installation. 2022-01-09 18:04:15 +01:00
Martin Dvorak 53548558fa
Polishing MD structure. 2022-01-09 18:01:47 +01:00
Martin Dvorak 18cf4925cc
Addition to MPR package manager #445 from Aeres-u99/master 2022-01-09 18:00:16 +01:00
Kei Tachikawa 8453ef4245 fixed typo 2022-01-09 16:36:32 +05:30
Kei Tachikawa 914c1280cf Moved it to correct section 2022-01-09 16:32:19 +05:30
Kei Tachikawa 03a3307a6f added information on using mpr for building and installation 2022-01-09 16:23:13 +05:30
Martin Dvorak e4d35c19c1
Bye bye Travis CI! 2022-01-03 11:03:03 +01:00
Martin Dvorak 343ecee5f9 Travis CI build status removal. 2022-01-03 11:01:37 +01:00
Martin Dvorak 97161f592f Bye, bye Travis CI! 2022-01-03 11:00:40 +01:00
Martin Dvorak 4c7db9f2bb Fixing man typo which resolves #398 2021-12-14 07:16:59 +01:00
Martin Dvorak 1e1b954a37 Resetting ubuntu build script to 0 patch. 2021-12-14 06:02:06 +01:00
Martin Dvorak d4fb5c7336
HSTR release 2.5.0 #444 from dvorka/dev/2.5.0 2021-12-13 22:39:19 +01:00
Martin Dvorak 9152b59527 Fixing Arch build by fixing bug in mvprintw which resolves #443 2021-12-13 22:07:30 +01:00
Martin Dvorak ad8dd39f45 Fixing installation and upgrade order. 2021-12-12 08:42:54 +01:00
Martin Dvorak b32ec9db56 Polishing documentation. 2021-12-12 08:40:45 +01:00
Martin Dvorak 634b009dcb Improving installation documentation and adding distribution packages like Ubuntu 😉 2021-12-12 08:21:40 +01:00
Martin Dvorak 4cfe83ef30
Create SECURITY.md 2021-12-12 07:46:29 +01:00
Martin Dvorak a0aaa3c238
HSTR release 2.4.0 #441 from dvorka/dev/2.4.0 2021-12-08 08:36:21 +01:00
Martin Dvorak 41a2989e7f Terminal prompt inject to insert; build fixes. 2021-12-03 18:45:59 +01:00
Martin Dvorak 1a36278dec Improving command injection documentation. 2021-12-03 07:50:55 +01:00
Martin Dvorak 0fee77a666 Merge branch 'dev/2.4.0' of github.com:dvorka/hstr into dev/2.4.0 2021-12-03 07:50:27 +01:00
Martin Dvorak ee4514fbc2 Improving command injection documentation. 2021-12-03 07:50:12 +01:00
Thibault Charbonnier 6eb799bc63
Fix a memory leak in blacklist component (#420) 2021-12-02 23:59:52 +01:00
Martin Dvorak 04cee3c27d Finishing zsh unmetafy unicode fix #416 #223 2021-12-02 23:56:24 +01:00
崔小二 4e1b2385bc
Unmetafy unicode when zsh (#416) 2021-12-02 23:50:07 +01:00
Martin Dvorak 32c4e262ff Merge branch 'master' into dev/2.4.0 2021-12-02 23:35:54 +01:00
Milis Linux 298379d204
installation for Milis Linux (#326) 2021-12-02 23:32:48 +01:00
monochromec e3e3b337cb
Added build dependency pkgconf to Debian (#403) 2021-12-02 23:30:51 +01:00
Jakub Jirutka 13db4b20e7
Add installation instructions for Alpine Linux (#426) 2021-12-02 23:28:52 +01:00
Martin Dvorak ba39fd274e Updating build date. 2021-12-02 23:25:35 +01:00
Martin Dvorak ccb43fa3ff Getting ready for 2.4.0 release. 2021-12-02 23:08:13 +01:00
Martin Dvorak 64b96d478a Adding ability to inject command to terminal. 2021-12-02 22:52:13 +01:00
Martin Dvorak 6507ac7f95 Adding Ubuntu Hirsute Hippo. 2021-06-27 09:38:27 +02:00
Martin Dvorak f57c4c5536 Adding user HSTR videos #428 2021-06-27 09:08:25 +02:00
Martin Dvorak 7d984e4f0d Skipping history -r under zsh to avoid printing whole history after a command delete which resolves #248 and resolves #386 2021-06-26 18:27:24 +02:00
Jonathan Chappelow 1d82a22f9c
Do not call isZshParentShell for every history line to ensure performance (#418) 2021-01-03 22:51:41 +01:00
Martin Dvorak 60fa279206 Updating list of current Ubuntu releases. 2020-11-19 07:47:22 +01:00
Martin Dvorak 8ff329e7c4 2.3.0 release version references and changelog. 2020-11-19 07:41:56 +01:00
Martin Dvorak db37132d0a Merge branch 'master' into dev/2.3.0 2020-11-19 07:31:18 +01:00
Thibault Charbonnier cba16a2d71
Fix a potential buffer overflow in 'get_shell_name_by_ppid' (#411) 2020-11-19 07:24:56 +01:00
James Carlos 33f7f5b593
Fix alias anchor link in configuration MD (#401) 2020-11-19 07:23:41 +01:00
Thibault Charbonnier 2fcef2f123
Exclude 'hh' from history (#412) 2020-11-19 07:22:54 +01:00
Martin Dvorak e864e92435 Adding ability to build HSTR tarball from any directory 2020-11-19 07:16:14 +01:00
Thibault Charbonnier 5ab8205859
Fix of wrong zsh extended history (with timestamps) SEGFAULT and parsing #409 (#410)
This patch fixes a segfault when .zsh_history contains commands starting
with `:` and longer than 15 characters long.

Considering the history line:

    : 1592444398:0;:vspman epoll_ctl

The ranked item's line will be:

    :vspman epoll_ctl

When building the prioritized history, we used to apply the zsh extended
history offset if the line starts with `:` (and if the command is longer
than `15`, defined by `ZSH_HISTORY_ITEM_OFFSET`), which then makes the
item point to:

    tl

This makes the `r->item` pointer invalid, which causes the segfault
observed in #408 within `prioritized_history_destroy`.

---

This patch prevents the same issue from arising again (even if the
line is wrongly interpreted) since it avoids any pointer arithmetic
between assignment and freeing.

Additionally, the patch also greatly improves the heuristics used in
determining whether a line is of extended history format or not, since
the non-extended format is also supported by zsh.

---

Fix #410
Fix #399
2020-11-19 07:13:30 +01:00
Martin Dvorak 09ee298cdf Adding focal Ubuntu distro. 2020-05-13 21:41:27 +02:00
Martin Dvorak 3d0a3e1c21 Merge branch 'dev/2.3.0' of github.com:dvorka/hstr into dev/2.3.0 2020-05-13 20:59:07 +02:00