From aa8e3847a2e586c65ec6ac7f87ea8b9f43598f20 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 27 Sep 2023 10:58:28 -0400 Subject: [PATCH] Fixed typo in ts, and updated vic script to use EDITOR --- scripts/scripts/ts | 2 +- scripts/scripts/vic | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/scripts/ts b/scripts/scripts/ts index dc50b45..50eac03 100755 --- a/scripts/scripts/ts +++ b/scripts/scripts/ts @@ -1,4 +1,4 @@ #!/bin/sh session=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick a session...") -tmux swift-client -t "$session" || tmux attach -t "$session" +tmux switch-client -t "$session" || tmux attach -t "$session" diff --git a/scripts/scripts/vic b/scripts/scripts/vic index 42a19c1..4543da3 100755 --- a/scripts/scripts/vic +++ b/scripts/scripts/vic @@ -1,5 +1,5 @@ #!/bin/sh -# opens a shell command in vi -cmd=$(command -v $1) -test -n "$cmd" && vi "$cmd" +# opens a shell command in $EDITOR +cmd="$(command -v $1)" +test -n "$cmd" && "$EDITOR" "$cmd"