Last active
April 4, 2016 20:52
-
-
Save michaelachrisco/4044abb48f4e061c6c89 to your computer and use it in GitHub Desktop.
Jruby with color scheme terminal in Mac OS 10.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
alias me="vi ~/.bashrc" | |
alias phptest="phpunit --include-path vendor/michaelachrisco/phpunit-progress/ --printer PHPUnit_Extensions_Progress_ResultPrinter --color" | |
#Ubuntu/Red Hat | |
#alias restart_apache="sudo service apache2 restart" | |
alias lg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias pa="php artisan" | |
#Add https://github.com/jimeh/git-aware-prompt | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source $GITAWAREPROMPT/main.sh | |
#export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
#Can also put into user profile file. | |
export EDITOR=vi | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\ \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' | |
alias la="ls" | |
gofunction() { | |
cd $1 | |
ls | |
} | |
shuffle_music_file() { | |
(find ~/Music -type f) | gshuf | |
} | |
alias shuffle='mplayer -playlist <(find $PWD -type f)' | |
alias shuffle_music='mplayer -playlist <(shuffle_music_file)' | |
alias go=gofunction | |
alias ..='cd ..' | |
alias c='clear' | |
export PATH="$HOME/.jenv/bin:$PATH" | |
eval "$(jenv init -)" | |
gitmodified(){ | |
# http://stackoverflow.com/questions/7124726/git-add-only-modified-changes-and-ignore-untracked-files | |
# git add `git status | grep modified | sed 's/\(.*modified:\s*\)//'` | |
git ls-files --modified | xargs git add | |
} | |
alias git_add_modified=gitmodified | |
gitoneoff(){ | |
git add . | |
git commit --amend | |
} | |
alias git_oneoff=gitoneoff | |
alias work_dev=`cd ~/dev/` | |
# Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment