Skip to content

Instantly share code, notes, and snippets.

@josh-kaplan
Created July 22, 2015 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josh-kaplan/0a0463705f1a141b0cd7 to your computer and use it in GitHub Desktop.
Save josh-kaplan/0a0463705f1a141b0cd7 to your computer and use it in GitHub Desktop.
Just a copy of my .bashrc file.
#!/bin/bash
# Aliases
alias ls="ls -G"
alias l="ls $*"
alias ll="ls -l"
alias lls="ls -l $*"
alias .="cd ~/Dev"
alias ..="cd .."
alias ...="cd ../../"
alias ....="cd ../../../"
alias arduino="/Applications/Arduino.app/Contents/MacOS/Arduino $*"
alias fuck='$(thefuck $(fc -ln -1))'
alias meld="/Applications/Meld.app/Contents/MacOS/Meld"
# Local Environment Variables
COLOR_Black="\e[0;30m"
COLOR_White="\e[1;37m"
COLOR_Gy="\e[1;30m"
COLOR_Bl="\e[0;34m"
COLOR_Gr="\e[0;32m"
COLOR_Cy="\e[0;36m"
COLOR_Rd="\e[0;31m"
COLOR_Pu="\e[0;35m"
COLOR_Yw="\e[1;33m"
COLOR_Br="\e[0;33m"
COLOR_Light_Gy="\e[0;37m"
COLOR_Light_Bl="\e[1;34m"
COLOR_Light_Gr="\e[1;32m"
COLOR_Light_Cy="\e[1;36m"
COLOR_Light_Rd="\e[1;31m"
COLOR_Light_Pu="\e[1;35m"
# Build the PS1 prompt
# Unicode fun:
# ➜ ། ༎ ༏ M༐ N༑ ༒ ༓ ༔ ༕ ༖ ༄ ᚠ ᛃ ᚴ ℐ → ↝ ↠ ↳ ⇀ ⇒ ∫ ∬ ∭ ∮ ∯ ∰ ∴
# ≫ ⋗ ⋙ ⊳ ⊶ ⊷ ⋯ ⏣ ▦ ☭ ☰ ☲ ☵ ☷ ☹ ☺ ☻ ⤳ ⦔
#
#
PS1="\[\$(if [ \$? -eq 0 ]; then echo \e[1\;32m; else echo \e[1\;31m; fi)\]"
PS1="\[$PS1\]∴ "
#PS1="\[$PS1\]\[\e[38;5;242m\]\u\[\e[38;5;250m\]@\[\e[38;5;242m\]osx "
PS1="\[$PS1\]\[\e[\e[38;5;14m\]\[ \W\] \[\e[m\]"
# Path
PATH=$PATH:~/.composer/vendor/bin
PATH=$PATH:/usr/local/mysql/bin
PATH=$PATH:/usr/local/sbin
export PATH
# Cleanup
clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment