.secrets file template for user home directory, sourced in ~/.bashrc and ~/.zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function add() { | |
regex="[[:space:]]+" | |
printf 'export %s=' "$1" | |
if [[ $2 =~ $regex ]]; then | |
printf %s "'$2'" | |
else | |
printf %s "$2" | |
fi | |
printf '\n' | |
} | |
# GitHub | |
add GITHUB_TOKEN ghp_000000000000000000000000000000000000 | |
# samba, see https://github.com/Jaid/setup-server/blob/main/composes/samba/docker-compose.yml | |
add sambaPassword | |
# rsyncd | |
add RSYNC_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- target: .secrets | |
userHome: true | |
backupExisting: true | |
permissions: 700 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment