Fixed typo in ts, and updated vic script to use EDITOR

This commit is contained in:
2023-09-27 10:58:28 -04:00
parent 2de739ec68
commit aa8e3847a2
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
session=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick a session...") 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"

View File

@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# opens a shell command in vi # opens a shell command in $EDITOR
cmd=$(command -v $1) cmd="$(command -v $1)"
test -n "$cmd" && vi "$cmd" test -n "$cmd" && "$EDITOR" "$cmd"