Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. # Simulate slowed zsh session
  2. for i in `seq 50`; do source ~/.zshrc; echo "a"; done
  3. # use zsh to make it faster "child" zsh
  4. zsh
  5. # confirm fast
  6. source ~/.zshrc; # fast
  7. # revert back to "parent" zsh
  8. exit
  9. # confirm old slow session is still there
  10. source ~/.zshrc; # slow
  11.  
  12. # Path to your oh-my-zsh installation.
  13. export ZSH="/Users/username/.oh-my-zsh"
  14.  
  15. ZSH_THEME="themename"
  16.  
  17. # Which plugins would you like to load?
  18. # Standard plugins can be found in ~/.oh-my-zsh/plugins/*
  19. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  20. # Example format: plugins=(rails git textmate ruby lighthouse)
  21. # Add wisely, as too many plugins slow down shell startup.
  22. plugins=(
  23. git
  24. )
  25.  
  26. source $ZSH/oh-my-zsh.sh
  27.  
  28.  
  29. # activate zsh-syntax-highlighting (brew install zsh-syntax-highlighting)
  30. source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  31.  
  32. function proxyON() {
  33. ...redacted
  34. }
  35.  
  36. function proxyOFF(){
  37. http_proxy=
  38. https_proxy=
  39. HTTP_PROXY=
  40. HTTPS_PROXY=
  41. export http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
  42. }
  43.  
  44. function nukeDS_Store(){
  45. find ~/Projects/mys/ -name '.DS_Store' -delete
  46. }
  47.  
  48. function reload-ssh() {
  49. ssh-add -e /Library/OpenSC/lib/opensc-pkcs11.so >> /dev/null
  50. if [ $? -gt 0 ]; then
  51. echo "Failed to remove previous card"
  52. fi
  53. ssh-add -s /Library/OpenSC/lib/opensc-pkcs11.so
  54. }
  55.  
  56. alias fastBuild='mvn install --offline -DskipTests=true'
  57.  
  58. ## History Settings
  59. # set history size
  60. export HISTSIZE=1000000
  61. #save history after logout
  62. export SAVEHIST=1000000
  63. ##history file
  64. export HISTFILE=~/.zhistory
  65. ##save only one command if 2 common are same and consistent
  66. setopt HIST_IGNORE_DUPS
  67. ##add timestamp for each entry
  68. setopt EXTENDED_HISTORY
  69. ##have seperate history for each
  70. setopt nosharehistory
  71. ##dont append into history file
  72. setopt NOINC_APPEND_HISTORY
  73.  
  74.  
  75. # Set java version
  76. export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_191`
  77.  
  78.  
  79. # Maven
  80. export M3_HOME="/Applications/apache-maven-3.6.0" # replace n.n.n with appropriate version
  81. export M3=$M3_HOME/bin
  82. export PATH=$M3:$PATH
  83.  
  84. ## set node version
  85. export PATH="/usr/local/opt/node@8/bin:$PATH"
  86.  
  87. ## pic-tools
  88. source /Projects/pic-tools/scripts/*.env
  89.  
  90. exec zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement