Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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