From 3fe06e664ac6416107690d6704dac76f209af885 Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 22 Dec 2019 10:17:00 -0700 Subject: fix .zprofile-dtach globbing --- .zprofile-dtach | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zprofile-dtach') diff --git a/.zprofile-dtach b/.zprofile-dtach index b2256cb..ab422d2 100644 --- a/.zprofile-dtach +++ b/.zprofile-dtach @@ -18,7 +18,7 @@ if [[ -z "${DTACH_SUB}" ]]; then # list sessions set -- $tmpdir/dtach* if [[ "$#" -gt 0 ]]; then - ls $tmpdir/dtach* | sed "s/\$tmpdir\/dtach-//g" + ls $tmpdir/dtach* | sed 's/.*\/dtach-//g' fi echo -n "> " -- cgit v1.2.3