diff --git a/bashrc/termux b/bashrc/termux new file mode 100755 index 0000000..169cf3a --- /dev/null +++ b/bashrc/termux @@ -0,0 +1,24 @@ +# Start GPG and SSH agents +export GPG_TTY=$(tty) +eval $(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info") +if [ -f "${HOME}/.gpg-agent-info" ]; then + # gpg-agent[****]: WARNING: "--write-env-file" is an obsolete + # option - it has no effect + . "${HOME}/.gpg-agent-info" + export GPG_AGENT_INFO + export SSH_AUTH_SOCK + export SSH_AGENT_PID +else + echo "Howdy, user ID ${EUID}. Shenanigans beget shenanigans." + # not needed this because we have .ssh/config + # but keep this uncommented because Git is being + # an dougebag in every single shell sessiob. + source ~/.dotfiles/bin/source-ssh-agent +fi + +# Run this with add-ssh-keys instead +#ssh-add $HOME/.ssh/github-personal + +# Then add my scripts +export DOTFILES_STUFF_BIN="$HOME/.dotfiles/bin" +export PATH=$PATH:$DOTFILES_STUFF_BIN diff --git a/gitconfig/linux b/gitconfig/linux new file mode 100644 index 0000000..b04388b --- /dev/null +++ b/gitconfig/linux @@ -0,0 +1,8 @@ +[credential "https://github.com"] + helper = !gh auth git-credential +[user] + email = andreijiroh@madebythepins.tk + name = Andrei Jiroh Eugenio Halili + signingkey = A30EBE40AD856D88 +[commit] + gpgsign = true diff --git a/gitconfig/termux b/gitconfig/termux new file mode 100644 index 0000000..33adfb4 --- /dev/null +++ b/gitconfig/termux @@ -0,0 +1,16 @@ +# This is Git's per-user configuration file. +[user] +# Please adapt and uncomment the following lines: + name = Andrei Jiroh Eugenio Halili + email = andreijiroh@madebythepins.tk + signingKey = A30EBE40AD856D88 +[commit] + signoff = true + gpgSign = true +[tag] + gpgSign = true +[core] + ## For god's sake, use Nano as possible. + ## This way, we don't need to install VS Code again + ## if we want to edit files. + editor = open-editor diff --git a/gitconfig/wsl b/gitconfig/wsl new file mode 100644 index 0000000..c035f7e --- /dev/null +++ b/gitconfig/wsl @@ -0,0 +1,9 @@ +[user] + email = andreijiroh@madebythepins.tk + name = Andrei Jiroh Halili +[credential "https://github.com"] + helper = !gh auth git-credential +[credential] + helper = /mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe +[protocol] + version = 2 diff --git a/linux.gitconfig b/linux.gitconfig deleted file mode 100644 index b04388b..0000000 --- a/linux.gitconfig +++ /dev/null @@ -1,8 +0,0 @@ -[credential "https://github.com"] - helper = !gh auth git-credential -[user] - email = andreijiroh@madebythepins.tk - name = Andrei Jiroh Eugenio Halili - signingkey = A30EBE40AD856D88 -[commit] - gpgsign = true diff --git a/linux.gitconfig b/linux.gitconfig new file mode 120000 index 0000000..fefdb1a --- /dev/null +++ b/linux.gitconfig @@ -0,0 +1 @@ +git/linux \ No newline at end of file diff --git a/termux.bashrc b/termux.bashrc deleted file mode 100755 index 169cf3a..0000000 --- a/termux.bashrc +++ /dev/null @@ -1,24 +0,0 @@ -# Start GPG and SSH agents -export GPG_TTY=$(tty) -eval $(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info") -if [ -f "${HOME}/.gpg-agent-info" ]; then - # gpg-agent[****]: WARNING: "--write-env-file" is an obsolete - # option - it has no effect - . "${HOME}/.gpg-agent-info" - export GPG_AGENT_INFO - export SSH_AUTH_SOCK - export SSH_AGENT_PID -else - echo "Howdy, user ID ${EUID}. Shenanigans beget shenanigans." - # not needed this because we have .ssh/config - # but keep this uncommented because Git is being - # an dougebag in every single shell sessiob. - source ~/.dotfiles/bin/source-ssh-agent -fi - -# Run this with add-ssh-keys instead -#ssh-add $HOME/.ssh/github-personal - -# Then add my scripts -export DOTFILES_STUFF_BIN="$HOME/.dotfiles/bin" -export PATH=$PATH:$DOTFILES_STUFF_BIN diff --git a/termux.bashrc b/termux.bashrc new file mode 120000 index 0000000..a133b1d --- /dev/null +++ b/termux.bashrc @@ -0,0 +1 @@ +bashrc/termux \ No newline at end of file diff --git a/termux.gitconfig b/termux.gitconfig deleted file mode 100644 index 33adfb4..0000000 --- a/termux.gitconfig +++ /dev/null @@ -1,16 +0,0 @@ -# This is Git's per-user configuration file. -[user] -# Please adapt and uncomment the following lines: - name = Andrei Jiroh Eugenio Halili - email = andreijiroh@madebythepins.tk - signingKey = A30EBE40AD856D88 -[commit] - signoff = true - gpgSign = true -[tag] - gpgSign = true -[core] - ## For god's sake, use Nano as possible. - ## This way, we don't need to install VS Code again - ## if we want to edit files. - editor = open-editor diff --git a/termux.gitconfig b/termux.gitconfig new file mode 120000 index 0000000..b2b6ee7 --- /dev/null +++ b/termux.gitconfig @@ -0,0 +1 @@ +gitconfig/termux \ No newline at end of file diff --git a/wsl.gitconfig b/wsl.gitconfig deleted file mode 100644 index c035f7e..0000000 --- a/wsl.gitconfig +++ /dev/null @@ -1,9 +0,0 @@ -[user] - email = andreijiroh@madebythepins.tk - name = Andrei Jiroh Halili -[credential "https://github.com"] - helper = !gh auth git-credential -[credential] - helper = /mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe -[protocol] - version = 2 diff --git a/wsl.gitconfig b/wsl.gitconfig new file mode 120000 index 0000000..fb03cc7 --- /dev/null +++ b/wsl.gitconfig @@ -0,0 +1 @@ +gitconfig/wsl \ No newline at end of file