Skip to content

Instantly share code, notes, and snippets.

@erkarp
Last active February 22, 2019 21:29
Show Gist options
  • Save erkarp/e3a72a4c2005489e9b2591159cd19da9 to your computer and use it in GitHub Desktop.
Save erkarp/e3a72a4c2005489e9b2591159cd19da9 to your computer and use it in GitHub Desktop.
.bash_profile
alias refresh='. ~/.bash_profile'
alias bashx='nano ~/.bash_profile'
alias ll='ls -alh'
alias fork='open -a Fork .'
alias sa='cd /Users/ekarp/Development/sa'
alias cms='cd /Users/ekarp/Development/smartcms'
alias sam='cd /Users/ekarp/Development/smartadvisormatch'
alias branches='bash ~/branches.sh'
alias stashes='git show --stat --oneline $(git stash list | cut -d":" -f 1)'
alias pastor='open /Users/ekarp/Documents/untitled1.pastor'
alias images='imgs'
function imgs() {
curl -sN $1 | grep -oP '(?<=src=")([\S]+)[png|gif|jpe?g](?=")' | sort -u
}
function links() {
curl -sN $1 | grep -oP '(?<=href=")([\S]+)(?=")' | sort -u
}
# git-flow-completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
function prompt {
local BLACK="\[\033[0;30m\]"
local BLACKBOLD="\[\033[1;30m\]"
local RED="\[\033[0;31m\]"
local REDBOLD="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local GREENBOLD="\[\033[1;32m\]"
local YELLOW="\[\033[0;33m\]"
local YELLOWBOLD="\[\033[1;33m\]"
local BLUE="\[\033[0;34m\]"
local BLUEBOLD="\[\033[1;34m\]"
local PURPLE="\[\033[0;35m\]"
local PURPLEBOLD="\[\033[1;35m\]"
local CYAN="\[\033[0;36m\]"
local CYANBOLD="\[\033[1;36m\]"
local WHITE="\[\033[0;37m\]"
local WHITEBOLD="\[\033[1;37m\]"
local RESETCOLOR="\[\e[00m\]"
export PS1="$BLUEBOLD\u@\w $RESETCOLOR"
}
export PLAY_PATH=/Applications/play-1.4.4
export TODO_PATH=/Applications/todo
export PATH=$PATH:$TODO_PATH:$PLAY_PATH
source ~/Development/git-subrepo/.rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment