Guest User

Untitled

a guest
Jan 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # == Loading ==
  4.  
  5. source ~/perl5/perlbrew/etc/bashrc
  6. source ~/Projects/bash/completions/git-completion
  7.  
  8. [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
  9.  
  10. # == Configuration ==
  11.  
  12. # Add several extra directories to the PATH
  13. PATH="/usr/local/sbin:${PATH}:/Users/yorickpeterse/bin"
  14. PATH="${PATH}:/usr/local/share/python:/usr/local/Cellar/php/5.3.6/bin"
  15.  
  16. # Set various variables for the PS1 string
  17. COLOR_DEFAULT='\[\e[0m\]'
  18. COLOR_BLUE='\[\e[0;34m\]'
  19. COLOR_GREEN='\[\e[0;32m\]'
  20. COLOR_RED='\[\e[0;31m\]'
  21. COLOR_YELLOW='\[\e[0;33m\]'
  22.  
  23. # == Exports ==
  24.  
  25. export PATH
  26. export GEM_PRIVATE_KEY='~/.gem_private/gem-private_key.pem'
  27. export GEM_CERTIFICATE_CHAIN='~/.gem_private/gem-public_cert.pem'
  28. export EDITOR='mvim -f -c "au VimLeave * !open -a iTerm"'
  29. export VIM_APP_DIR='/Applications/Development'
  30.  
  31. # PS1 Format: [USERNAME@HOSTNAME in DIRECTORY on BRANCH]$
  32. export PS1="[${COLOR_YELLOW}\u@\h${COLOR_DEFAULT} in ${COLOR_GREEN}\W${COLOR_DEFAULT}\$(__git_ps1 ' on %s')]\$ "
  33.  
  34. # == Aliases ==
  35.  
  36. # List all files and directories with colors enabled.
  37. alias ls='ls -G'
  38.  
  39. # Shows the status of the current Git repository.
  40. alias gs="git status";
  41.  
  42. # Shows a list of branches and gives a color to the current branch.
  43. alias gb="git branch --color=always";
  44.  
  45. # Show a diff in color.
  46. alias gd="git diff --color=always";
  47.  
  48. # == Functions ==
  49.  
  50. # Does a case insensitive search using Ack and pages the results using Less.
  51. function ack-match
  52. {
  53. ack "${1}" --match "${2}" -i --pager="less -R"
  54. }
  55.  
  56. function minutes-float
  57. {
  58. echo "(1/60)*(${1})" | bc -l;
  59. }
Add Comment
Please, Sign In to add comment