Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. grunt-cli v0.1.13
  2.  
  3. ESC="33" # This is the escape sequence
  4. NO_COLOR="$ESC[0m"
  5. IRED="$ESC[1;31m" # ANSI color code for intense/bold red
  6. IGRN="$ESC[1;32m" # ANSI color code for intense/bold green
  7.  
  8. # From http://railstips.org/blog/archives/2009/02/02/bedazzle-your-bash-prompt-with-git-info/
  9. # I had to change 'git-symbolic-ref' to 'git symbolic-ref'
  10. function parse_git_branch {
  11. ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  12. echo " ["${ref#refs/heads/}"]" # I wanted my branch wrapped in [], use () or <> or whatever
  13. }
  14.  
  15. # from http://ariejan.net/2010/04/25/ruby-version-and-gemset-in-your-bash-prompt-yes-sir
  16. function rvm_version {
  17. local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}')
  18. [ "$gemset" != "" ] && gemset="@$gemset"
  19. local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $2}')
  20. [ "$version" != "" ] && version="$version"
  21. local full="$version$gemset"
  22. [ "$full" != "" ] && echo "${full}:" # the colon at the end is a delimiter, you could use a space instead
  23. }
  24.  
  25. #PS1="h:W u$" # For reference, here's the default OS X prompt
  26. #export PS1="$(rvm_version)W $(parse_git_branch)$ " # Without the colors
  27.  
  28. # I had to put the [ and ] down here, as opposed to $IRED, to avoid wrapping funkiness.
  29. export PS1="[$IRED]$(rvm_version)[$NO_COLOR]W[$IGRN]$(parse_git_branch)[$NO_COLOR] $ "
  30.  
  31. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
  32. export PATH=/usr/local/share/npm/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@railstuorial_rails_4_0/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/kelvinyu/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/kelvinyu/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin
  33. export PATH=/usr/local/share/npm/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@railstuorial_rails_4_0/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/kelvinyu/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/kelvinyu/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin
  34. export PATH=/usr/local/share/npm/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@railstuorial_rails_4_0/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/kelvinyu/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/kelvinyu/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin
  35. export PATH=/usr/local/share/npm/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@railstuorial_rails_4_0/bin:/Users/kelvinyu/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/kelvinyu/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/kelvinyu/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin
  36.  
  37. export PATH=/usr/local/Cellar/node/0.10.24/bin/:$PATH
  38. export PATH=/usr/local/lib/node_modules/grunt/bin:$PATH
  39.  
  40. npm http GET https://registry.npmjs.org/grunt-contrib-watch
  41. npm http GET https://registry.npmjs.org/grunt-contrib-jshint
  42. npm http GET https://registry.npmjs.org/grunt-concurrent
  43. npm http GET https://registry.npmjs.org/grunt-mocha-test
  44. npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
  45. npm http 304 https://registry.npmjs.org/grunt-concurrent
  46. npm http 304 https://registry.npmjs.org/grunt-contrib-watch
  47. npm http 304 https://registry.npmjs.org/grunt-mocha-test
  48.  
  49. > mean@0.1.2 postinstall /Users/kelvinyu/fullstack/pleasetakeit
  50. > node node_modules/bower/bin/bower install
  51.  
  52. bower EMALFORMED Failed to read /Users/kelvinyu/fullstack/pleasetakeit/bower.json
  53.  
  54. Additional error details:
  55. Unexpected token }
  56.  
  57. npm ERR! mean@0.1.2 postinstall: `node node_modules/bower/bin/bower install`
  58. npm ERR! Exit status 1
  59. npm ERR!
  60. npm ERR! Failed at the mean@0.1.2 postinstall script.
  61. npm ERR! This is most likely a problem with the mean package,
  62. npm ERR! not with npm itself.
  63. npm ERR! Tell the author that this fails on your system:
  64. npm ERR! node node_modules/bower/bin/bower install
  65. npm ERR! You can get their info via:
  66. npm ERR! npm owner ls mean
  67. npm ERR! There is likely additional logging output above.
  68. npm ERR! System Darwin 13.1.0
  69. npm ERR! command "/usr/local/Cellar/node/0.10.24/bin/node" "/usr/local/Cellar/node/0.10.24/bin/npm" "install"
  70. npm ERR! cwd /Users/kelvinyu/fullstack/pleasetakeit
  71. npm ERR! node -v v0.10.24
  72. npm ERR! npm -v 1.3.21
  73. npm ERR! code ELIFECYCLE
  74. npm ERR!
  75. npm ERR! Additional logging details can be found in:
  76. npm ERR! /Users/kelvinyu/fullstack/pleasetakeit/npm-debug.log
  77. npm ERR! not ok code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement