config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 490026b5398e4f0f398fc70ead53b830b7b6fac3
parent 598c5f39195efc5c57ba92adb4eb9d4d66c4e5e9
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sat, 27 Mar 2021 04:59:37 -0700

Fix minor issues with the tat script

- Only try and attach when dmenu(1) exits successfully
- Pass arguments using '@` rather than `*'

Diffstat:
Mlocal/bin/.local/bin/tat | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/local/bin/.local/bin/tat b/local/bin/.local/bin/tat @@ -4,7 +4,7 @@ # # tat -- attach to tmux(1) session selected with dmenu(1) -list() { tmux ls | cut -d: -f1 ;} -attach() $TERMINAL -e tmux a -t $* +list() { tmux ls "$@" | cut -d: -f1 ;} +attach() $TERMINAL -e tmux a -t "$@" -exec attach `list | dmenu $*` & +s="$(list | dmenu "$@")" && attach "$s"