From 0aef8086b5deeda4681ce12b90df621d53d16b3c Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Thu, 21 Jul 2022 12:14:01 -0500 Subject: [PATCH 1/3] completion: Update completion submodule to 0.34.0 --- modules/completion/external | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/completion/external b/modules/completion/external index 11ad0a4..0331b29 160000 --- a/modules/completion/external +++ b/modules/completion/external @@ -1 +1 @@ -Subproject commit 11ad0a45ff1695cac00e86c687cce6fa1fd1cdbd +Subproject commit 0331b2908f93556453e45fa5a899aa21e0a7f64d From 3ea20cfbe8d55259016e37a69e4fae7356e322e0 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Wed, 3 Aug 2022 15:37:00 -0500 Subject: [PATCH 2/3] utility: Make 'http-serve' handler faster for well known cases In most systems, python2 or python3 command/soft-link would almost always exist. In such cases, we don't need to invoke `python` to detect the version. This should speed things up a bit as well. --- modules/utility/init.zsh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index c6dc3c0..c901591 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -196,12 +196,14 @@ fi # Serves a directory via HTTP. if (( $#commands[(i)python(|[23])] )); then autoload -Uz is-at-least - if is-at-least 3 ${"$(python --version 2>&1)"[(w)2]}; then - alias http-serve='python -m http.server' - elif (( $+commands[python3] )); then + if (( $+commands[python3] )); then alias http-serve='python3 -m http.server' + elif (( $+commands[python2] )); then + alias http-serve='python2 -m SimpleHTTPServer' + elif is-at-least 3 ${"$(python --version 2>&1)"[(w)2]}; then + alias http-serve='python -m http.server' else - alias http-serve='$commands[(i)python(|2)] -m SimpleHTTPServer' + alias http-serve='python -m SimpleHTTPServer' fi fi From 51c4ff6de4e2d1afd30e52ba19b21b1128fd1ed5 Mon Sep 17 00:00:00 2001 From: Shea690901 Date: Thu, 7 Apr 2022 21:40:04 +0200 Subject: [PATCH 3/3] feat(module/ssh): add globbing for ssh-add param fixes #2000 Signed-off-by: Shea690901 --- modules/ssh/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ssh/init.zsh b/modules/ssh/init.zsh index b9567d4..f870997 100644 --- a/modules/ssh/init.zsh +++ b/modules/ssh/init.zsh @@ -52,9 +52,9 @@ if ssh-add -l 2>&1 | grep -q 'The agent has no identities'; then # program specified by SSH_ASKPASS and open an X11 window to read the # passphrase. if [[ -n "$DISPLAY" && -x "$SSH_ASKPASS" ]]; then - ssh-add ${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}} < /dev/null 2> /dev/null + ssh-add ${_ssh_identities:+$_ssh_dir/${^~_ssh_identities[@]}} < /dev/null 2> /dev/null else - ssh-add ${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}} 2> /dev/null + ssh-add ${_ssh_identities:+$_ssh_dir/${^~_ssh_identities[@]}} 2> /dev/null fi fi