]> git.huck.website - zshmux.git/commitdiff
update to 2.0
authorHuck Boles <huck@huck.website>
Sat, 13 May 2023 03:08:20 +0000 (22:08 -0500)
committerHuck Boles <huck@huck.website>
Sat, 13 May 2023 03:08:20 +0000 (22:08 -0500)
README [new file with mode: 0644]
zshmux.sh [moved from zshmux.zsh with 99% similarity]

diff --git a/README b/README
new file mode 100644 (file)
index 0000000..a10c5f6
--- /dev/null
+++ b/README
@@ -0,0 +1,18 @@
+## zshmux 2.0
+
+### about
+when a new shell is launched zshmux checks if there are any tmux sessions.
+if you are not already in a tmux session zshmux will list all currently active sessions, 
+then ask if you want to attach a currently running session, or make a new session in the shell.
+if there is only one tmux session running and not attached to any clients, zshmux 
+will just automatically attach the session to the current shell.
+
+### using
+- add `[[ -d PATH/TO/ZSHMUX ]] && source PATH/TO/ZSHMUX/zshmux.sh` in your .zshrc
+- open a new shell
+
+### other shells
+zshmux should work with any bash compliant shell, as it no longer implements any zsh specific functions.
+
+### installation
+download or clone this repo and move `zshmux.zsh` to desired directory. then source in your `.shellrc`
similarity index 99%
rename from zshmux.zsh
rename to zshmux.sh
index f82c848245bacd8d89ff74cb381c6fa5f3c91dbb..072b59152b16095117562f3f02e000b632bae22a 100644 (file)
+++ b/zshmux.sh
@@ -1,4 +1,4 @@
-#!/bin/zsh
+#!/bin/bash
 
 # start tmux server if it's not already running
 [[ ! $(pgrep tmux) ]] && tmux start