Skip to content

Commit

Permalink
Fix random identifier for tmux session names
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrieb committed Dec 30, 2020
1 parent 9c5f49a commit 18f5ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotfiles/ttyd_run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Create a new tmux session with a randomized identifier
cd ~/ctf && tmux new-session -c ~/ctf -s "ctf""$(date +%s | sed "s/\(.\)/\1\n/g" | head -n -1 | shuf | tail -n 6 | tr -d "\n")" -t ctf
cd ~/ctf && tmux new-session -c ~/ctf -s "ctf""$((RANDOM))" -t ctf

0 comments on commit 18f5ef4

Please sign in to comment.