diff --git a/bashrc/termux b/bashrc/termux index 169cf3a..9e82d37 100755 --- a/bashrc/termux +++ b/bashrc/termux @@ -22,3 +22,7 @@ fi # Then add my scripts export DOTFILES_STUFF_BIN="$HOME/.dotfiles/bin" export PATH=$PATH:$DOTFILES_STUFF_BIN + +# clean up bash history +echo +rm .bash_history && echo "Shell history cleaned for past session" diff --git a/gitconfig/termux b/gitconfig/termux index 5c38ee3..0347039 100644 --- a/gitconfig/termux +++ b/gitconfig/termux @@ -4,6 +4,8 @@ name = Andrei Jiroh Eugenio Halili email = andreijiroh@madebythepins.tk # Don't ask why I don't use my old GPG key anymore. + # The old key I'm saying is the one in Keybase. + # Looks kinda outdated, but I'll fix it soon. signingKey = A30EBE40AD856D88 [commit] signoff = true @@ -15,3 +17,13 @@ ## This way, we don't need to install VS Code again ## if we want to edit files. editor = nano + +# Enforce SSH +[url "git@github.com:"] + insteadOf = https://github.com/ + pushInsteadOf = https://github.com/ +[url "git@gitlab.com:"] + insteadOf = https://gitlab.com/ + pushInsteadOf = https://gitlab.com/ +[url "git@bitbucket.org:"] + insteadOf = https://bitbucket.org/ diff --git a/ssh-client/termux b/ssh-client/termux deleted file mode 120000 index 378b104..0000000 --- a/ssh-client/termux +++ /dev/null @@ -1 +0,0 @@ -/data/data/com.termux/files/home/.dotfiles/ssh/termux \ No newline at end of file diff --git a/ssh-client/termux b/ssh-client/termux new file mode 100644 index 0000000..5029a6a --- /dev/null +++ b/ssh-client/termux @@ -0,0 +1,42 @@ +# Launchpad.net SSH keys for mirroring some repos manually, +# partularly the gitlab.com:termux-package-android5x/src.git repo +# among any sort of shits and giggles. +Host launchpad-git + Hostname git.launchpad.net + IdentityFile ~/.ssh/launchpad + User ajhalili2006 +Host launchpad-bazar + Hostname bazar.launchpad.net + IdentityFile ~/.ssh/launchpad + User ajhalili2006 + +# GitHub.com and some GitLab instance SSH Keys +# Copying-pasting PAT is a distater in case they're yeeted by +# some random pajeet who hacked my motherfucking Linux/Win10 PC +# Sometimes, these are shortcuts in case I need to check +# if they're still working after importing my keys or when I need +# to generate 2FA backup codes remotely. +Host github + Hostname github.com + IdentityFile ~/.ssh/github-personal + User git +Host gitlab + Hostname gitlab.com + IdentityFile ~/.ssh/github-personal + User git + +# Git sometimes an shit in SSH client conifg +# especially if I typed the full domain instead of +# shortcuts I made. +Host github.com + IdentityFile ~/.ssh/github-personal + User git +Host gitlab.com + IdentityFile ~/.ssh/github-personal + User git +Host git.launchpad.net + IdentityFile ~/.ssh/launchpad + User ajhalili2006 +Host bazar.launchpad.net + IdentityFile ~/.ssh/launchpad + User ajhalili2006 diff --git a/ssh/termux b/ssh/termux deleted file mode 100644 index 5029a6a..0000000 --- a/ssh/termux +++ /dev/null @@ -1,42 +0,0 @@ -# Launchpad.net SSH keys for mirroring some repos manually, -# partularly the gitlab.com:termux-package-android5x/src.git repo -# among any sort of shits and giggles. -Host launchpad-git - Hostname git.launchpad.net - IdentityFile ~/.ssh/launchpad - User ajhalili2006 -Host launchpad-bazar - Hostname bazar.launchpad.net - IdentityFile ~/.ssh/launchpad - User ajhalili2006 - -# GitHub.com and some GitLab instance SSH Keys -# Copying-pasting PAT is a distater in case they're yeeted by -# some random pajeet who hacked my motherfucking Linux/Win10 PC -# Sometimes, these are shortcuts in case I need to check -# if they're still working after importing my keys or when I need -# to generate 2FA backup codes remotely. -Host github - Hostname github.com - IdentityFile ~/.ssh/github-personal - User git -Host gitlab - Hostname gitlab.com - IdentityFile ~/.ssh/github-personal - User git - -# Git sometimes an shit in SSH client conifg -# especially if I typed the full domain instead of -# shortcuts I made. -Host github.com - IdentityFile ~/.ssh/github-personal - User git -Host gitlab.com - IdentityFile ~/.ssh/github-personal - User git -Host git.launchpad.net - IdentityFile ~/.ssh/launchpad - User ajhalili2006 -Host bazar.launchpad.net - IdentityFile ~/.ssh/launchpad - User ajhalili2006