From 309134fa696da372433319686617743be6ada8b9 Mon Sep 17 00:00:00 2001 From: Sneethe Date: Sun, 1 Jun 2025 06:47:12 +1000 Subject: [PATCH 1/4] add 'tip' --- tips.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tips.md b/tips.md index e03c646f..c6596443 100644 --- a/tips.md +++ b/tips.md @@ -236,6 +236,7 @@ zstyle ':z4h:ssh:*' enable no zstyle ':z4h:ssh:example-hostname1' enable yes zstyle ':z4h:ssh:*.example-hostname2' enable yes ``` +*NOTE*: The shell needs to be reloaded `exec zsh` for .zshrc zstyle changes to take effect. ### Extra dotfiles From 1a38bcf5e79ca6f054c19553b6488e5b3120ea57 Mon Sep 17 00:00:00 2001 From: Sneethe Date: Wed, 11 Jun 2025 17:38:05 +1000 Subject: [PATCH 2/4] correct double negative --- tips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips.md b/tips.md index c6596443..f0fdb4ef 100644 --- a/tips.md +++ b/tips.md @@ -83,7 +83,7 @@ starts and upon pressing Ctrl+L: zstyle ':z4h:' prompt-at-bottom 'yes' ``` -This feature requires that [`start-tmux` is not set to `no`](#tmux). +This feature requires that [`start-tmux` is set to `yes`](#tmux). If you have a habit of running `clear` instead of pressing Ctrl+L, you can add this alias: From 638f7bbd71de7d17fcf9afe6a2d8708a54d66f26 Mon Sep 17 00:00:00 2001 From: Sneethe Date: Thu, 12 Jun 2025 16:27:50 +1000 Subject: [PATCH 3/4] Add context for z4h-accept-line I didn't know what this did for some time. Probably because `PS2` in bash has a very different meaning. --- tips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips.md b/tips.md index f0fdb4ef..e399d62f 100644 --- a/tips.md +++ b/tips.md @@ -166,7 +166,7 @@ POSTEDIT=$'\n\e[A' You can bind `Enter` to `z4h-accept-line` to insert a newline instead of displaying the secondary prompt (a.k.a. `PS2`) when the currently typed -command is incomplete. +command is incomplete. See: [issue](https://github.com/romkatv/zsh4humans/issues/10) for more information. ```zsh z4h bindkey z4h-accept-line Enter From d942c423de1903ea25464f6810c8291d90f93f54 Mon Sep 17 00:00:00 2001 From: Sneethe Date: Sat, 14 Jun 2025 01:15:46 +1000 Subject: [PATCH 4/4] typo --- tips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips.md b/tips.md index e399d62f..d7bf072b 100644 --- a/tips.md +++ b/tips.md @@ -536,7 +536,7 @@ idea execute commands with glob arguments in order to have them this way in history. This allows you to re-execute them even when the set of `**/*.orig` files changes.) -Try flipping `setup no_auto_menu` to `setopt auto_menu` and see if you like it. +Try flipping `setopt no_auto_menu` to `setopt auto_menu` and see if you like it. This will automatically press Tab for the second time when the first Tab inserts an unambiguous prefix.