mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
scripts: Add a script to create a radicle env
Creates a new profile with a repo and drops you in.
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
unset SSH_AUTH_SOCK
|
||||
unset SSH_AGENT_PID
|
||||
|
||||
tmp="$(mktemp -d)"
|
||||
|
||||
export RAD_HOME=$tmp/.radicle
|
||||
export RAD_PASSPHRASE=
|
||||
|
||||
set -x
|
||||
mkdir $tmp/acme
|
||||
cd $tmp/acme
|
||||
echo "ACME" > README
|
||||
echo "Copyright (c) 1978-1986 ACME Corp." > COPY
|
||||
|
||||
git init
|
||||
git add README COPY
|
||||
git commit -m "Initial commit" --no-gpg-sign
|
||||
|
||||
rad auth --alias alice
|
||||
rad init --name "acme" --description "ACME Corp. Warez" --private --no-confirm
|
||||
|
||||
exec "$SHELL"
|
||||
Reference in New Issue
Block a user