Skip to content

Instantly share code, notes, and snippets.

@asbhat
Created October 14, 2019 01:26
Show Gist options
  • Select an option

  • Save asbhat/2e476a13b97929fffcf24ee03593735d to your computer and use it in GitHub Desktop.

Select an option

Save asbhat/2e476a13b97929fffcf24ee03593735d to your computer and use it in GitHub Desktop.
# -------------------------
# Aliases
# -------------------------
alias cp='cp -iv'
alias ll='ls -lhp'
alias mkdir='mkdir -pv'
alias mv='mv -iv'
alias rm='rm -vf'
alias f='open -a Finder ./'
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
alias du='du -sh'
alias dirs='dirs -v'
alias jnotebook='jupyter-notebook 2>/dev/null &'
alias gpullall='find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} pull \;'
alias love='/Applications/love.app/Contents/MacOS/love'
# -------------------------
# Environment Configuration
# -------------------------
# Set Path
export PATH=/usr/local/sbin:$PATH
# Use Homebrew's 3.x python instead of Homebrew's 2.x python or the system's
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
# Change Prompt
export PS1='%1d $ '
# Colors!
export CLICOLOR=1
export LSCOLORS=exfxbxdxcxegedabagacad
# Don't store duplicates in history (only latest)
export HISTCONTROL=ignoreboth:erasedups
# enable glob extentions for commands
setopt extended_glob
# git autocomplete
fpath=(/usr/local/share/zsh-completions $fpath)
# pyenv
if command pyenv -v 1> /dev/null; then eval "$(pyenv init -)"; fi
# pyenv virtualenvwrapper
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
export WORKON_HOME=$HOME/.virtualenvs
pyenv virtualenvwrapper_lazy
# Ruby Version Manager
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment