reformatted to use my template
This commit is contained in:
12
scripts/mac-linux/start_tmux
Normal file
12
scripts/mac-linux/start_tmux
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
#change to ccurrent directory
|
||||
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
||||
|
||||
#start
|
||||
if [[ $(tmux ls | grep $(npm run getname -s)) ]]; then
|
||||
echo "Session already exists"
|
||||
else
|
||||
tmux new-session -d -s $(npm run getname -s) ./start
|
||||
echo "Created session"
|
||||
fi
|
||||
Reference in New Issue
Block a user