Skip to content

Instantly share code, notes, and snippets.

@kevbost
Last active May 19, 2022 15:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevbost/eaa4e466565e193d4a21a45ab3bc44ec to your computer and use it in GitHub Desktop.
Save kevbost/eaa4e466565e193d4a21a45ab3bc44ec to your computer and use it in GitHub Desktop.
Personal ~/.zshrc file for Windows Subsystem Linux (WSL) (LSSW)
# DEFAULT .ZSHRC FILE CAN BE FOUND HERE
# https://github.com/robbyrussell/oh-my-zsh/blob/master/templates/zshrc.zsh-template
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ys is my personal favorite
# ZSH_THEME="ys"
ZSH_THEME="rkj"
plugins=(git)
source $ZSH/oh-my-zsh.sh
ENABLE_CORRECTION="true"
# -------------
# KB ALIASES
# -------------
# Edit & Reload this file
alias edit="nano ~/.zshrc"
alias reload=". ~/.zshrc"
# Git Aliases
alias g="git"
alias gs="git status"
alias ga="git add ."
alias pushthatshit="push"
alias gpts="git push"
alias gc="git commit -m"
alias glg="git lg"
alias gac="git add . && git commit -m"
alias ghpages="git subtree push --prefix dist origin gh-pages"
alias no="cd .."
alias nono="cd ../.."
alias nonono="cd ../../.."
alias nononono="cd ../../../.."
# Quick update
alias update="sudo apt-get update && sudo apt-get dist-upgrade -y"
alias fire="aafire"
alias e="exit"
alias gitlog="git log --graph --oneline --decorate --date=relative --all"
# Paths
alias ws="cd /mnt/c/Workspace"
# SSH
alias letmein2=""
alias letmein3=""
# Start simple python server
alias server="python -m SimpleHTTPServer 8000"
# Random
alias fucking="sudo"
#code() {
# target_path=$(wslpath -r -s -w $1)
# (cd /mnt/c && /mnt/c/Windows/System32/cmd.exe /C code.cmd $target_path)
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment