Guest User

Untitled

a guest
Aug 16th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. # -------------------------------------------------------------------------- #
  2. # Welcome Message
  3. # -------------------------------------------------------------------------- #
  4. echo "Hi Yann! Welcome back!"
  5.  
  6. # -------------------------------------------------------------------------- #
  7. #
  8. # Description: This file holds all my BASH configurations and aliases
  9. #
  10. # Sections:
  11. # 1. Environment Configuration
  12. # 2. set paths
  13. # 3. alias
  14. # 4. Searching
  15. # 5. Process Management
  16. # 6. Networking
  17. # 7. System Operations & Information
  18. # 8. Web Development
  19. # 9. Reminders & Notes
  20. # 10. Scripts
  21. #
  22. # -------------------------------------------------------------------------- #
  23.  
  24. # -------------------------------------------------------------------------- #
  25. # 1. ENVIRONMENT CONFIGURATION
  26. # -------------------------------------------------------------------------- #
  27. # Set the JAVA_HOME system environment variable
  28. export JAVA_HOME=$(/usr/libexec/java_home)
  29.  
  30. # set the ANDROID_HOME system environment variable
  31. export ANDROID_HOME=/usr/local/share/android-sdk
  32. #export ANDROID_HOME=/Users/yann/Library/Android/sdk
  33. export ANDROID_SDK_ROOT=$ANDROID_HOME
  34.  
  35. # get and set database path from heroku app
  36. export DATABASE_URL=$(heroku config:get DATABASE_URL -a web-server-reports)
  37. #export DATA_URL=jdbc:postgresql://localhost:500/$(whoami)
  38.  
  39. # -------------------------------------------------------------------------- #
  40. # 2. SET PATHS
  41. # -------------------------------------------------------------------------- #
  42. # node@8 is keg-only, which means it was not symlinked into /usr/local,
  43. # because macOS provides libicucore.dylib (but nothing else).
  44. # export PATH="/usr/local/opt/node@8/bin:$PATH"
  45.  
  46. # node path install from nodejs download page /usr/local/bin/node
  47. # and npm /usr/local/bin/npm
  48. # export PATH="/usr/local/bin"
  49. export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
  50.  
  51. # Add Visual Studio Code (code)
  52. export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
  53.  
  54. # setting path for Posgres app
  55. export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH"
  56.  
  57. # Setting PATH for Python 3.6
  58. # The original version is saved in .bash_profile.pysave
  59. PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
  60. export PATH
  61.  
  62. # -------------------------------------------------------------------------- #
  63. # 3. ALIAS
  64. # -------------------------------------------------------------------------- #
  65. # add alias for Komodo IDE 11 & use Komodo from the command-line
  66. alias komodo='open -a "Komodo Edit 11"'
  67.  
  68. # add alias so that the python command on termanl refers to Python 3.6
  69. alias python=python3
  70.  
  71. # add alias so that the pip command on terminal refers to pip3
  72. alias pip=pip3
  73.  
  74. # -------------------------------------------------------------------------- #
  75. # 10. Scripts
  76. # -------------------------------------------------------------------------- #
  77. # Install Git: brew install git
  78. # Install bash-completion: brew install bash-completion
  79. # Add bash-completion script for git auto completion
  80. if [ -f $(brew --prefix)/etc/bash_completion ]; then
  81. . $(brew --prefix)/etc/bash_completion
  82.  
  83. # config command prompt "in Prompt String 1" - PS1
  84. export PS1='\u:\W$(__git_ps1 "(%s)") $ '
  85. fi
  86.  
  87. # -------------------------------------------------------------------------- #
Add Comment
Please, Sign In to add comment