From d74f49bb93b14d0cfe18f76ba6e02716bc883c5a Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 9 Sep 2020 10:00:36 -0700 Subject: dump dtach --- .zprofile-dtach | 59 --------------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 .zprofile-dtach diff --git a/.zprofile-dtach b/.zprofile-dtach deleted file mode 100644 index ab422d2..0000000 --- a/.zprofile-dtach +++ /dev/null @@ -1,59 +0,0 @@ -if [[ -z "${DTACH_SUB}" ]]; then -{ - setopt NULL_GLOB - - while true; do - set -- $tmpdir/dtach* - if [[ "$#" -gt 0 ]]; then - # session exists, so show the menu - { - while true; do - set -- $tmpdir/dtach* - if [[ "$#" -eq 0 ]]; then - # logout if all sessions terminated - clear - logout - fi - - # list sessions - set -- $tmpdir/dtach* - if [[ "$#" -gt 0 ]]; then - ls $tmpdir/dtach* | sed 's/.*\/dtach-//g' - fi - - echo -n "> " - read -A args - case "${args[1]}" in - "") - break; - ;; - - q) - break; - ;; - - *) - DTACH_SUB=true dtach -A "$tmpdir/dtach-${args[1]}" -z zsh - clear - ;; - esac - - done - } - - clear - logout - else - # create the main session - DTACH_SUB=true dtach -A $tmpdir/dtach-1 -z zsh - clear - set -- $tmpdir/dtach* - if [[ "$#" -eq 0 ]]; then - # logout if all sessions terminated - clear - logout - fi - fi - done -} -fi -- cgit v1.2.3