12 lines
275 B
Bash
12 lines
275 B
Bash
#!/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 |