From 4ef63c1cd6f3293971a2188eaba9c4707e125ba0 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Mon, 6 Oct 2025 18:54:27 +0200 Subject: [PATCH] Remove "asc" function Used GNU screen. Probably users switched to tmux and/or mosh. Gbp-Dch: full Closes: https://github.com/grml/grml-etc-core/issues/230 --- doc/grmlzshrc.adoc | 6 ------ etc/zsh/zshrc | 6 ------ 2 files changed, 12 deletions(-) diff --git a/doc/grmlzshrc.adoc b/doc/grmlzshrc.adoc index 463bd2d..77f3876 100644 --- a/doc/grmlzshrc.adoc +++ b/doc/grmlzshrc.adoc @@ -641,12 +641,6 @@ If no argument is specified N is set to 1. *any()*:: Lists processes matching given pattern. -*asc()*:: -Login on the host provided as argument using autossh. Then reattach a GNU screen -session if a detached session is around or detach a currently attached screen or -else start a new screen. This is especially useful for roadwarriors using GNU -screen and ssh. - *bk()*:: Simple backup management of a file or directory using standard unix programs. The target file name is the original name plus a time stamp attached. Symlinks diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 35b726c..bdda582 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2472,12 +2472,6 @@ if [[ -x /sbin/kexec ]] && [[ -r /proc/cmdline ]] ; then alias "$(uname -r)-reboot"="kexec -l --initrd=/boot/initrd.img-"$(uname -r)" --command-line=\"$(cat /proc/cmdline)\" /boot/vmlinuz-"$(uname -r)"" fi -# especially for roadwarriors using GNU screen and ssh: -if ! check_com -g asc && check_com -c autossh && check_com -c screen &>/dev/null ; then - function asc () { autossh -t "$@" 'screen -RdU' } - compdef asc=ssh -fi - #f1# Hints for the use of zsh on grml function zsh-help () { print "$bg[white]$fg[black]