Skip to content

Instantly share code, notes, and snippets.

View victor-pogor's full-sized avatar
🎯
Focusing

Victor Pogor victor-pogor

🎯
Focusing
View GitHub Profile
@victor-pogor
victor-pogor / wsl.sh
Created October 3, 2020 17:31
This shell script is used for adding SSH and GPG keys to newly created WSL (Ubuntu) distribution.
#!/usr/bin/env bash
# Sensitive informations
FULLNAME='Name Surname' # Enter your fullname.
EMAIL='name.surname@example.com' # Enter your email.
GITHUB_TOKEN='xxxxx' # Enter your Github token. It can be obtained here: https://github.com/settings/tokens. You need to define the "admin:gpg_key" and "admin:public_key" scopes.
GPG_PASSPHRASE="xxxxx" # Enter GPG passphrase.
# Configure Git
git config --global user.name "$FULLNAME"