Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # == Loading ==
- source ~/perl5/perlbrew/etc/bashrc
- source ~/Projects/bash/completions/git-completion
- [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
- # == Configuration ==
- # Add several extra directories to the PATH
- PATH="/usr/local/sbin:${PATH}:/Users/yorickpeterse/bin"
- PATH="${PATH}:/usr/local/share/python:/usr/local/Cellar/php/5.3.6/bin"
- # Set various variables for the PS1 string
- COLOR_DEFAULT='\[\e[0m\]'
- COLOR_BLUE='\[\e[0;34m\]'
- COLOR_GREEN='\[\e[0;32m\]'
- COLOR_RED='\[\e[0;31m\]'
- COLOR_YELLOW='\[\e[0;33m\]'
- # == Exports ==
- export PATH
- export GEM_PRIVATE_KEY='~/.gem_private/gem-private_key.pem'
- export GEM_CERTIFICATE_CHAIN='~/.gem_private/gem-public_cert.pem'
- export EDITOR='mvim -f -c "au VimLeave * !open -a iTerm"'
- export VIM_APP_DIR='/Applications/Development'
- # PS1 Format: [USERNAME@HOSTNAME in DIRECTORY on BRANCH]$
- export PS1="[${COLOR_YELLOW}\u@\h${COLOR_DEFAULT} in ${COLOR_GREEN}\W${COLOR_DEFAULT}\$(__git_ps1 ' on %s')]\$ "
- # == Aliases ==
- # List all files and directories with colors enabled.
- alias ls='ls -G'
- # Shows the status of the current Git repository.
- alias gs="git status";
- # Shows a list of branches and gives a color to the current branch.
- alias gb="git branch --color=always";
- # Show a diff in color.
- alias gd="git diff --color=always";
- # == Functions ==
- # Does a case insensitive search using Ack and pages the results using Less.
- function ack-match
- {
- ack "${1}" --match "${2}" -i --pager="less -R"
- }
- function minutes-float
- {
- echo "(1/60)*(${1})" | bc -l;
- }
Add Comment
Please, Sign In to add comment