Guest User

Untitled

a guest
Nov 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. # Python -------------
  2. # Anaconda
  3. alias anaconda='export PATH=/Users/dharhas/anaconda/bin:$PATH; alias workon="source activate"; alias deactivate="source deactivate"'
  4. alias rma='deactivate; export PATH=`echo -n $PATH | awk -v RS=: -v ORS=: "/anaconda/ {next} {print}" | sed "s/:$//"`; unalias workon deactivate'
  5.  
  6. # Problem with anaconda gdal
  7. export GDAL_DATA=/usr/local/share/gdal/
  8.  
  9. # Virtual Envs (for use with system python)
  10. export WORKON_HOME=~/venvs
  11. source virtualenvwrapper.sh
  12. # --------------------
  13.  
  14. # Git ----------------
  15. # gitprompt configuration
  16. GIT_PROMPT_START='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]'
  17. GIT_PROMPT_ONLY_IN_REPO=0
  18. GIT_PROMPT_END='$ '
  19. . ~/repos/bash-git-prompt/gitprompt.sh
  20. export PATH=/usr/local/bin:$PATH
  21. # --------------------
  22.  
  23. # Bash History Settings ----
  24. export HISTCONTROL=ignoredups:erasedups #avoid dups
  25. #append history entries ...
  26. shopt -s histappend
  27. alias u='history -n'
  28. PROMPT_COMMAND="$PROMPT_COMMAND; history -a"
  29. # --------------------------
Add Comment
Please, Sign In to add comment