From 47ae86cac0bca1bc08dbe444f827371cd8223c6e Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 21 Jan 2022 11:51:24 +0100 Subject: [PATCH] Add `start` script --- README.md | 2 ++ bin/start | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 bin/start diff --git a/README.md b/README.md index cbc2815..8f6c1f7 100644 --- a/README.md +++ b/README.md @@ -11,4 +11,6 @@ path to the binaries. `ifconfig` (kind of redundant because we can use `ip` in the WSL but keeping it here anyway for convenience) - `wsl`: use the WSL to WSL the WSL. +- `start`: start `tmux` as a sub-process of `ssh-agent` and attach to the + `main` session, creating it if not existent. diff --git a/bin/start b/bin/start new file mode 100644 index 0000000..d7e8b01 --- /dev/null +++ b/bin/start @@ -0,0 +1,3 @@ +#!/bin/sh +exec ssh-agent tmux new-session -A -t main "$@" +