Here's the contents of my ~/.zshrc
file. Sometimes I add more depending on my use case but these are the basics!
.zshrc
and sourcing it. It can get a bit annoying to type out each time.jlaunch
is for launching Jekyll, which is a template framework which I use for this website. The command wipes the existing "build" from the directory and starts up a local server on http://127.0.0.1:4000
.PATH
environment variable.
alias vimp="vim ~/.zshrc"
alias sourcep="source ~/.zshrc"
alias cdd="cd ../.."
alias cl="cd ..; ls"
alias gla="git log --all --graph --decorate"
alias gs="git status"
alias glo="git log --oneline"
alias gdn="git diff --name-only"
alias grm="git pull origin main --rebase"
alias gca="git commit --amend"
alias gb="git branch"
alias gds="git diff --stat"
alias jlaunch="rm -rf _site && bundle exec jekyll serve"
alias venvinstall="python3 -m venv env; env/bin/python -m pip install --upgrade pip setuptools wheel"
alias venvactivate="source env/bin/activate"
export PS1="🌊 "
export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.1.0/bin:$PATH"