Skip to content

Commit 09533aa

Browse files
authored
Merge pull request #229 from crpb/autossh
zshrc: asc() check for existence of autossh
2 parents 7cfc131 + ab891f7 commit 09533aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/zsh/zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,7 @@ if [[ -x /sbin/kexec ]] && [[ -r /proc/cmdline ]] ; then
24702470
fi
24712471

24722472
# especially for roadwarriors using GNU screen and ssh:
2473-
if ! check_com asc &>/dev/null ; then
2473+
if ! check_com -g asc && check_com -c autossh && check_com -c screen &>/dev/null ; then
24742474
function asc () { autossh -t "$@" 'screen -RdU' }
24752475
compdef asc=ssh
24762476
fi

0 commit comments

Comments
 (0)