Advertisement
anujpandey

zshrc

Aug 4th, 2019
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.71 KB | None | 0 0
  1. # If you come from bash you might have to change your $PATH.
  2. # export PATH=$HOME/bin:/usr/local/bin:$PATH
  3.  
  4. # Path to your oh-my-zsh installation.
  5. export TERM="screen-256color"
  6. export LC_ALL=$LANG
  7. export ZSH="/Users/anujpandey/.oh-my-zsh"
  8.  
  9. # Set name of the theme to load. Optionally, if you set this to "random"
  10. # it'll load a random theme each time that oh-my-zsh is loaded.
  11. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
  12. #ZSH_THEME="robbyrussell"
  13. #ZSH_THEME="powerlevel9k/powerlevel9k"
  14. #ZSH_THEME="agnoster"
  15. ZSH_THEME="bira"
  16.  
  17. # Set list of themes to load
  18. # Setting this variable when ZSH_THEME=random
  19. # cause zsh load theme from this variable instead of
  20. # looking in ~/.oh-my-zsh/themes/
  21. # An empty array have no effect
  22. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
  23.  
  24. # Uncomment the following line to use case-sensitive completion.
  25. # CASE_SENSITIVE="true"
  26.  
  27. # Uncomment the following line to use hyphen-insensitive completion. Case
  28. # sensitive completion must be off. _ and - will be interchangeable.
  29. # HYPHEN_INSENSITIVE="true"
  30.  
  31. # Uncomment the following line to disable bi-weekly auto-update checks.
  32. # DISABLE_AUTO_UPDATE="true"
  33.  
  34. # Uncomment the following line to change how often to auto-update (in days).
  35. # export UPDATE_ZSH_DAYS=13
  36.  
  37. # Uncomment the following line to disable colors in ls.
  38. # DISABLE_LS_COLORS="true"
  39.  
  40. # Uncomment the following line to disable auto-setting terminal title.
  41. # DISABLE_AUTO_TITLE="true"
  42.  
  43. # Uncomment the following line to enable command auto-correction.
  44. # ENABLE_CORRECTION="true"
  45.  
  46. # Uncomment the following line to display red dots whilst waiting for completion.
  47. # COMPLETION_WAITING_DOTS="true"
  48.  
  49. # Uncomment the following line if you want to disable marking untracked files
  50. # under VCS as dirty. This makes repository status check for large repositories
  51. # much, much faster.
  52. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  53.  
  54. # Uncomment the following line if you want to change the command execution time
  55. # stamp shown in the history command output.
  56. # You can set one of the optional three formats:
  57. # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  58. # or set a custom format using the strftime function format specifications,
  59. # see 'man strftime' for details.
  60. # HIST_STAMPS="mm/dd/yyyy"
  61.  
  62. # Would you like to use another custom folder than $ZSH/custom?
  63. # ZSH_CUSTOM=/path/to/new-custom-folder
  64.  
  65. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  66. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  67. # Example format: plugins=(rails git textmate ruby lighthouse)
  68. # Add wisely, as too many plugins slow down shell startup.
  69. plugins=(
  70.   git
  71.   zsh-syntax-highlighting
  72.   zsh-autosuggestions
  73. )
  74.  
  75. source $ZSH/oh-my-zsh.sh
  76.  
  77. # User configuration
  78.  
  79. # export MANPATH="/usr/local/man:$MANPATH"
  80.  
  81. # You may need to manually set your language environment
  82. # export LANG=en_US.UTF-8
  83.  
  84. # Preferred editor for local and remote sessions
  85. # if [[ -n $SSH_CONNECTION ]]; then
  86. #   export EDITOR='vim'
  87. # else
  88. #   export EDITOR='mvim'
  89. # fi
  90.  
  91. # Compilation flags
  92. # export ARCHFLAGS="-arch x86_64"
  93.  
  94. # ssh
  95. # export SSH_KEY_PATH="~/.ssh/rsa_id"
  96.  
  97. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  98. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  99. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  100. # For a full list of active aliases, run `alias`.
  101. #
  102. # Example aliases
  103. # alias zshconfig="mate ~/.zshrc"
  104. # alias ohmyzsh="mate ~/.oh-my-zsh"
  105.  
  106. test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
  107.  
  108. #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
  109. export SDKMAN_DIR="/Users/anujpandey/.sdkman"
  110. [[ -s "/Users/anujpandey/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/anujpandey/.sdkman/bin/sdkman-init.sh"
  111. if [ /usr/local/bin/kubectl ]; then source <(kubectl completion zsh); fi
  112. plugins=(zsh-autosuggestions)
  113.  
  114. source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
  115.  
  116. # Git
  117. alias g='git s'
  118. alias gap='git ap'
  119. alias gd='git d'
  120. alias gds='git ds'
  121. alias gl='git l'
  122. alias gl='git l --color --oneline --decorate'
  123. alias gs='git s'
  124. alias gaa='git aa'
  125. alias gc='git c'
  126. alias gcm='git commit -m'
  127.  
  128. sp(){
  129.     export http_proxy=http://www-proxy-hqdc.us.oracle.com:80
  130.     export HTTP_PROXY=http://www-proxy-hqdc.us.oracle.com:80
  131.     export https_proxy=http://www-proxy-hqdc.us.oracle.com:80
  132.     export HTTPS_PROXY=http://www-proxy-hqdc.us.oracle.com:80
  133.     export no_proxy=localhost,127.0.0.1,.us.oracle.com,.oraclecorp.com
  134.     export NO_PROXY=localhost,127.0.0.1,.us.oracle.com,.oraclecorp.com
  135. }
  136.  
  137. unsp()
  138. {
  139.     unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
  140. }
  141.  
  142. export TERM=xterm-256color
  143.  
  144. alias ff=printf "\e[?1004l"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement