1
1
mirror of https://github.com/ellie/atuin.git synced 2024-10-26 23:29:51 +03:00
Commit Graph

88 Commits

Author SHA1 Message Date
Koichi Murase
a7bed61461
fix(bash): work around bash < 4 and introduce initialization guards (#1533)
* fix(bash): add a guard for interactive shells

* fix(bash): add a guard for the Bash version

* fix(bash): localize READLINE_LINE in bash < 4

In bash < 4, the variables READLINE_LINE and READLINE_POINT are not
supported for the shell commands called by `bind -x`.  Even if it is
not supported, atuin works in not a bad way.  However, this sometimes
causes a strange behavior by the remaining values of READLINE_LINE set
in the previous calls of __atuin_history.  In bash < 4, we can
consistently use an empty string instead of $READLINE_LINE, and the
changes to READLINE_LINE and READLINE_POINT should be localized within
the function.

* fix(bash): add guard for double initialization

In bash, it is customary to reload the settings by sourcing `.bashrc`
again after modifying it.  In such a case, `eval "$(atuin init bash)"`
is executed again.  This registers duplicate hooks to
`preexec_functions` and `precmd_functions`.  To prevent this in this
patch, we introduce an include guard, so that the initialization is
not performed more than once.
2024-01-10 14:11:12 +00:00
Mike Tsao
803b2fed5c
docs: Improve style (#1537)
"backup" is a noun. "back up" is a verb.
2024-01-10 08:22:35 +00:00
Ellie Huxtable
d1fc843db3
docs: clarify enter/tab usage (#1538) 2024-01-10 08:18:47 +00:00
Azzam S.A
3a0e070e74
docs: fix Destination file already exists in Nushell (#1530)
It is a common practice to use `-f` in Nushell configurations to avoid
`Destination file already exists` error.
2024-01-09 16:37:57 +00:00
Ellie Huxtable
af51485767
docs: remove activity graph 2024-01-09 11:53:51 +00:00
Marcin Puc
d303d68010
docs(readme): add repology badge (#1494) 2024-01-03 16:41:25 +00:00
Ellie Huxtable
7053823e7f
docs: remove stray character from README 2024-01-01 20:07:12 +00:00
Ellie Huxtable
9d4fdf71d0
fix(docs): discord link expired 2023-12-31 19:14:24 +00:00
Koichi Murase
a4122f062a
fix(bash): improve the support for enter_accept with ble.sh (#1465)
* feat(bash): check version of ble.sh

blehooks are only supported in ble.sh >= 0.4, so we require the ble.sh
version to be larger or equal to 0.4.  We also describe the version
requirement in README.md.

* fix(bash): use ble.sh's contrib/integration/bash-preexec

ble.sh provides module "contrib/integration/bash-preexec", which can
be used with the same interface as bash-preexec.  This module provides
"preexec_functions" and "precmd_functions" without requiring
bash-preexec.

This module also properly handles it when both ble.sh and bash-preexec
are loaded; the module resolves the conflicts between ble.sh and
bash-preexec, and the module also tries to support bash-preexec in the
detached state of ble.sh.

* fix(bash): use ble.sh's accept-line widget for enter_accept

In ble.sh, one can directly call the widget "accept-line" from a shell
script.  The widget "accept-line" is the actual widget that reserves
the command execution in ble.sh, so calling "accept-line" is
equivalent to the normal execution.  It includes all the necessary
adjustments and processing including stty and history.

In addition, the command will be executed at the top-level context
instead in a function scope.  For example, without ble.sh, running
"declare -A dict=()" through enter_accept will create an associative
array in the function scope unexpectedly.  With ble.sh, since the
command is executed at the top-level context, such a problem does not
happen.

When ble.sh is in a detached state, we fall back to the manual
execution of the command.  In this case, we cannot assume the
existence of the shell function "__bp_set_ret_value", so we always use
__atuin_set_ret_value.
2023-12-28 20:08:45 +00:00
Ellie Huxtable
d58192ff55
docs(readme): use picture element for logo 2023-12-16 09:23:31 +00:00
Ellie Huxtable
206157dd23
docs(readme): fix light/dark mode logo 2023-12-16 09:20:57 +00:00
Ellie Huxtable
1d0f05b6fb
docs: add fish install script (#1447) 2023-12-14 08:19:51 +00:00
Marcin Puc
a973697724
docs: add Void Linux install instruction (#1445)
* docs(readme): add Void Linux install instruction

* docs: add Void Linux install instruction to advanced-install.md
2023-12-14 08:19:42 +00:00
Ellie Huxtable
57b5b03c11
docs: align setup links in docs and readme (#1446) 2023-12-14 08:04:54 +00:00
Ellie Huxtable
2d922d4069
docs: add link to forum 2023-12-12 23:42:14 +00:00
Ellie Huxtable
8a3834f9c8
docs(readme): add actuated linkback
Thanks again for the sponsorship @alexellis

ref: https://docs.actuated.dev/faq/#is-there-a-sponsored-subscription-for-open-source-projects
2023-12-12 15:33:19 +00:00
Ellie Huxtable
7019697fae
Update README.md logo height 2023-12-12 09:43:22 +00:00
Ellie Huxtable
c77b749e62
Update README.md logo 2023-12-12 09:42:49 +00:00
Ellie Huxtable
913c5a0d94
chore(readme): add contributor image to README (#1430) 2023-12-10 11:13:43 +00:00
Patrick Jackson
31653ed996
Bash enter_accept best effort fixes (#1384)
* fix(bash): Rewrite the enter_accept integration

* docs(bash): Update bash installation instructions with warnings
2023-11-10 23:58:05 +00:00
Ellie Huxtable
df7430f0bf
Remove fig from README (#1197) 2023-08-28 23:19:08 +01:00
Edward Loveall
0a3680f54c
Fix keybinding link in README (#1173) 2023-08-17 20:42:57 +00:00
Ellie Huxtable
1fb7caa2d6
Move all references to the old repo (#1132)
The repo now lives on an org! Move all references to the old path.
2023-07-30 23:08:00 +01:00
éclairevoyant
f8585e6109
Update Arch Linux links in README (#1016) 2023-05-30 09:49:00 +00:00
Conrad Ludgate
7d5a82df14
validate usernames on registration (#982)
improve login password incorrect error message

update docs for registration with passwords
2023-05-16 22:03:53 +01:00
Ellie Huxtable
dc523416f6
Include bash preexec warning (#983) 2023-05-16 21:58:05 +01:00
Aleks Bunin
1bdb470f69
Update README.md: Disable update check for offline mode (#960) 2023-05-09 11:18:04 +00:00
Richard de Boer
a38fc6e898
docs: fix "From source" cd command (#937)
Cloning does not automatically cd to the new directory,
and we need to cd to "atuin" *inside* the cloned repository.
2023-05-06 14:35:24 +00:00
Qiming Xu
b2fb5e6604
docs: Fix broken links in README.md (#920) 2023-05-02 02:43:30 +00:00
Robin Millette
50e2770f37
Fix fig plugin link (#924) 2023-04-28 13:25:04 +00:00
Ellie Huxtable
4e4fdb9f8e
Release Atuin v14 (#836)
* Bump versions

* Write release notes

* add link
2023-04-01 18:17:38 +01:00
Ellie Huxtable
4325ec4624
Update README.md 2023-03-26 15:44:31 +01:00
Steven Xu
a7cb21a51b
feat: add *Nushell* support (#788)
* feat: add *Nushell* support

* refactor: use `sh` to swap `STDOUT` and `STDERR` instead of using a temporary file

* feat: include both keybindings, with the current REPL buffer passed to *Atuin*'s

* feat: don't record commands run by keybindings
2023-03-26 15:44:06 +01:00
Krithic Kumar
9e05d747ea
docs(README): fix activity graph link (#753) 2023-03-02 22:52:37 +00:00
Ellie Huxtable
3e90031c0e Add verification 2023-02-28 22:29:34 +00:00
Ellie Huxtable
b40383fc90
Add Hachyderm links (#742) 2023-02-28 22:27:06 +00:00
Ellie Huxtable
c558da5beb
Add fancy web docs (#725)
* Add initial site

* WIP again

* Replace docs with web docs

* Bring back translations

* Update README.md

* remove images
2023-02-25 23:29:59 +00:00
Jamie Quigley
b2a0986ca6
Add nix files and install instructions (#477) 2023-02-15 09:04:07 +00:00
Eric Ripa
78b54662cd
docs(README): add static activity graph example (#680)
resolves ellie/atuin#678
2023-02-10 19:33:52 +00:00
Ellie Huxtable
936e51eb56
Update README.md (#704) 2023-02-10 09:08:42 +00:00
Martin Junghanns
4aa2011e0e
Fix CI build badge (#683)
see https://github.com/badges/shields/issues/8671

also, nice talk at FOSDEM :)
2023-02-05 16:56:09 +01:00
Jamie Quigley
a5616aea8f
Rework atuin init (#652)
* Rework `atuin init`

This allows users to disable the CTRL-R and Up Arrow bindings,
independently from one another

* Document --disable-{ctrl-r,up-arrow}

* Apply suggestions from code review

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2022-12-24 17:18:44 +00:00
Webmaster At Cosmic DNA
ee89129c2b
Update README.md with antigen instruction. (#549)
* Update README.md with antigen instruction.

Add Antigen plugin manager instruction.

* Update README.md

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>

* Update README.md

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2022-11-02 20:57:37 +00:00
Bruce Huang
02049bf68d
update zh-CN docs (#539)
* update zh-CN docs

* update zh-CN docs

* update zh-CN docs

* update zh-CN docs
2022-10-08 03:36:49 +00:00
Laurent le Beau-Martin
6f19e8abf5
Add installer support for Termux (#540) 2022-09-25 09:14:51 -07:00
Ilkin Bayramli
6718db161d
Add Fig as an installation method to the README (#459) 2022-06-16 21:27:38 +01:00
Ellie Huxtable
f2abc23a1e
Update README.md 2022-06-05 21:49:00 +01:00
Ellie Huxtable
dcdde22511
Fix text outline for dark mode 2022-05-30 18:05:57 +01:00
Ellie Huxtable
4096c6ee8c
Update README.md
Several people have asked why the bindings weren't setup after installing via their package manager

I imagine they skip straight to the install section with the name of their pkg tool, without reading the rest of the documentation.

This should hopefully make that a bit more clear! Albeit while introducing more repetition
2022-05-19 23:34:29 +01:00
Ellie Huxtable
e0291f6779
Update README.md 2022-05-10 11:47:08 +01:00