mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-02 23:13:31 +00:00
zsh-stripped: init
Patched version of ZSH that provides remote file completion and special handling for special chars such as # or ^
This commit is contained in:
parent
7edb5c6f37
commit
68bdc4f3f0
4 changed files with 91 additions and 9 deletions
29
pkgs/zsh-stripped/0001-remote-complete-files.patch
Normal file
29
pkgs/zsh-stripped/0001-remote-complete-files.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
diff --git a/Completion/Unix/Type/_remote_files b/Completion/Unix/Type/_remote_files
|
||||
index 93e1b7f43..4d4a7abbf 100644
|
||||
--- a/Completion/Unix/Type/_remote_files
|
||||
+++ b/Completion/Unix/Type/_remote_files
|
||||
@@ -60,10 +60,7 @@ if zstyle -T ":completion:${curcontext}:files" remote-access; then
|
||||
dirprefix=${dir}/
|
||||
fi
|
||||
|
||||
- if [[ -z $QIPREFIX ]]
|
||||
- then rempat="${dirprefix}${PREFIX%%[^./][^/]#}\*"
|
||||
- else rempat="${dirprefix}${(q)PREFIX%%[^./][^/]#}\*"
|
||||
- fi
|
||||
+ rempat="${dirprefix}${(q)PREFIX%%[^./][^/]#}\*"
|
||||
|
||||
# remote filenames
|
||||
remfiles=(${(M)${(f)"$(
|
||||
@@ -92,9 +89,9 @@ if zstyle -T ":completion:${curcontext}:files" remote-access; then
|
||||
while _tags; do
|
||||
while _next_label remote-files expl ${suf:-remote directory}; do
|
||||
[[ -n $suf ]] &&
|
||||
- compadd "$args[@]" "$expl[@]" -d remdispf -- ${(q)remdispf%[*=|]} && ret=0
|
||||
+ compadd "$args[@]" "$expl[@]" -d remdispf -- ${remdispf%[*=|]} && ret=0
|
||||
compadd ${suf:+-S/} $autoremove "$args[@]" "$expl[@]" -d remdispd \
|
||||
- -- ${(q)remdispd%/} && ret=0
|
||||
+ -- ${remdispd%/} && ret=0
|
||||
done
|
||||
(( ret )) || return 0
|
||||
done
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue