Skip to content

Instantly share code, notes, and snippets.

@coltenkrauter
Last active March 2, 2021 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save coltenkrauter/c37b727c33ff4cf96395fcbf0245b79b to your computer and use it in GitHub Desktop.
Save coltenkrauter/c37b727c33ff4cf96395fcbf0245b79b to your computer and use it in GitHub Desktop.
WSL2 .profile
# ~/.profile
cd ~/Repositories
# Useful aliases
alias subl="/mnt/c/Program\ Files/Sublime\ Text\ 3/subl.exe"
alias chrome="/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe"
alias github="chrome https://github.com/coltenkrauter?tab=repositories"
alias downloads="echo /mnt/c/Users/Colten/Downloads/"
alias clo="git clone"
alias add="git add"
alias com='git commit -m "$(read -p "Commit message: " msg; echo $msg)"'
alias push="git push"
# Required for gpg key signing with GitHub
export GPG_TTY=$(tty)
# To initialise ssh agent for secure connection with GitHub
# eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_rsa_github; Moving this to ~/.ssh/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment