25 lines
892 B
Plaintext
25 lines
892 B
Plaintext
if [ -z "${name}" ]; then
|
|
echo "entering dev environment..."
|
|
|
|
nix develop . --extra-experimental-features nix-command --extra-experimental-features flakes
|
|
else
|
|
echo "setting up dev environment..."
|
|
|
|
source .aliases
|
|
source .functions
|
|
source .variables
|
|
source .rcs
|
|
fi
|
|
if [ -z "$SSH_AUTH_SOCK" ]; then
|
|
echo "Unable to find SSH_AUTH_SOCK, is your agent running?";
|
|
fi
|
|
if [ -z "$(ssh-add -l | grep -v 'The agent has no identities.')" ]; then
|
|
echo "Your agent doesn't appear to have any identities loaded, please load a key or forward your agent.";
|
|
fi
|
|
if [ -z "$(env | grep 'AWS')" ]; then
|
|
echo "Unable to find AWS authentication information in the environment, please make sure you authenticate with AWS.";
|
|
fi
|
|
if [ -z "$(env | grep 'GITHUB_TOKEN')" ]; then
|
|
echo "Unable to find GITHUB authentication information in the environment, please make sure you authenticate with GITHUB.";
|
|
fi
|