mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
Evgenii Terechkov: 26831: filter out redundant information in _screen
This commit is contained in:
parent
29684e7c81
commit
28dac24fc6
2 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
2009-04-16 Peter Stephenson <pws@csr.com>
|
2009-04-16 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* Evgenii Terechkov: 26831: Completion/Unix/Command/_screen:
|
||||||
|
filter out redundant output.
|
||||||
|
|
||||||
* Alexey I. Froloff: 26829: Completion/Unix/Command/_rsync:
|
* Alexey I. Froloff: 26829: Completion/Unix/Command/_rsync:
|
||||||
miscounting fields in output.
|
miscounting fields in output.
|
||||||
|
|
||||||
|
@ -11547,5 +11550,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.4648 $
|
* $Revision: 1.4649 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -98,19 +98,19 @@ if [[ -n $state ]]; then
|
||||||
attached-sessions)
|
attached-sessions)
|
||||||
sessions=(
|
sessions=(
|
||||||
${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
|
${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
|
||||||
-ls)"}:#*[Aa]ttached*}##[[:blank:]]}%%[[:blank:]]*}
|
-ls 2>/dev/null)"}:#*[Aa]ttached*}##[[:blank:]]}%%[[:blank:]]*}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
detached-sessions)
|
detached-sessions)
|
||||||
sessions=(
|
sessions=(
|
||||||
${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
|
${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
|
||||||
-ls)"}:#*[Dd]etached*}##[[:blank:]]}%%[[:blank:]]*}
|
-ls 2>/dev/null)"}:#*[Dd]etached*}##[[:blank:]]}%%[[:blank:]]*}
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
any-sessions)
|
any-sessions)
|
||||||
sessions=(
|
sessions=(
|
||||||
${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
|
${${${(M)${(f)"$(_call_program screen-sessions $words[1] \
|
||||||
-ls)"}:#*tached*}##[[:blank:]]}%%[[:blank:]]*}
|
-ls 2>/dev/null)"}:#*tached*}##[[:blank:]]}%%[[:blank:]]*}
|
||||||
)
|
)
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue