zshrc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # If you come from bash you might have to change your $PATH.
  2. # export PATH=$HOME/bin:/usr/local/bin:$PATH/th
  3. # Path to your oh-my-zsh installation.
  4. export ZSH="$HOME/.oh-my-zsh"
  5. # Set name of the theme to load --- if set to "random", it will
  6. # load a random theme each time oh-my-zsh is loaded, in which case,
  7. # to know which specific one was loaded, run: echo $RANDOM_THEME
  8. # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
  9. ZSH_THEME="robbyrussell"
  10. # Set list of themes to pick from when loading at random
  11. # Setting this variable when ZSH_THEME=random will cause zsh to load
  12. # a theme from this variable instead of looking in $ZSH/themes/
  13. # If set to an empty array, this variable will have no effect.
  14. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
  15. # Uncomment the following line to use case-sensitive completion.
  16. # CASE_SENSITIVE="true"
  17. # Uncomment the following line to use hyphen-insensitive completion.
  18. # Case-sensitive completion must be off. _ and - will be interchangeable.
  19. # HYPHEN_INSENSITIVE="true"
  20. # Uncomment one of the following lines to change the auto-update behavior
  21. # zstyle ':omz:update' mode disabled # disable automatic updates
  22. # zstyle ':omz:update' mode auto # update automatically without asking
  23. # zstyle ':omz:update' mode reminder # just remind me to update when it's time
  24. # Uncomment the following line to change how often to auto-update (in days).
  25. # zstyle ':omz:update' frequency 13
  26. # Uncomment the following line if pasting URLs and other text is messed up.
  27. # DISABLE_MAGIC_FUNCTIONS="true"
  28. # Uncomment the following line to disable colors in ls.
  29. # DISABLE_LS_COLORS="true"
  30. # Uncomment the following line to disable auto-setting terminal title.
  31. # DISABLE_AUTO_TITLE="true"
  32. # Uncomment the following line to enable command auto-correction.
  33. # ENABLE_CORRECTION="true"
  34. # Uncomment the following line to display red dots whilst waiting for completion.
  35. # You can also set it to another string to have that shown instead of the default red dots.
  36. # e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
  37. # Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
  38. # COMPLETION_WAITING_DOTS="true"
  39. # Uncomment the following line if you want to disable marking untracked files
  40. # under VCS as dirty. This makes repository status check for large repositories
  41. # much, much faster.
  42. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  43. # Uncomment the following line if you want to change the command execution time
  44. # stamp shown in the history command output.
  45. # You can set one of the optional three formats:
  46. # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  47. # or set a custom format using the strftime function format specifications,
  48. # see 'man strftime' for details.
  49. # HIST_STAMPS="mm/dd/yyyy"
  50. # Would you like to use another custom folder than $ZSH/custom?
  51. # ZSH_CUSTOM=/path/to/new-custom-folder
  52. # Which plugins would you like to load?
  53. # Standard plugins can be found in $ZSH/plugins/
  54. # Custom plugins may be added to $ZSH_CUSTOM/plugins/
  55. # Example format: plugins=(rails git textmate ruby lighthouse)
  56. # Add wisely, as too many plugins slow down shell startup.
  57. plugins=(git ssh-agent rust)
  58. zstyle :omz:plugins:ssh-agent identities ~/.ssh/{github,ansible}
  59. source $ZSH/oh-my-zsh.sh
  60. # User configuration
  61. # export MANPATH="/usr/local/man:$MANPATH"
  62. # You may need to manually set your language environment
  63. # export LANG=en_US.UTF-8
  64. # Preferred editor for local and remote sessions
  65. # if [[ -n $SSH_CONNECTION ]]; then
  66. # export EDITOR='vim'
  67. # else
  68. # export EDITOR='mvim'
  69. # fi
  70. # Compilation flags
  71. # export ARCHFLAGS="-arch x86_64"
  72. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  73. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  74. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  75. # For a full list of active aliases, run `alias`.
  76. #
  77. # Example aliases
  78. # alias zshconfig="mate ~/.zshrc"
  79. # alias ohmyzsh="mate ~/.oh-my-zsh"
  80. alias vim=nvim
  81. alias ls='ls --color'
  82. alias grep='grep --color'
  83. #rust
  84. PATH=$PATH:$HOME/.cargo/bin
  85. #go
  86. PATH=$PATH:/usr/local/go/bin
  87. PATH=$PATH:$HOME/go/bin
  88. #bun
  89. PATH=$PATH:$HOME/.bun/bin
  90. # local bin
  91. PATH=$PATH:$HOME/.local/bin
  92. #zig
  93. PATH=$PATH:/opt/zig
  94. export PATH
  95. export NVM_DIR="$HOME/.nvm"
  96. [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
  97. [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
  98. if [ ! -f /usr/local/bin/nvim ]; then
  99. export EDITOR=nano
  100. else
  101. export EDITOR=nvim
  102. fi
  103. export EDITOR
  104. #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
  105. export SDKMAN_DIR="$HOME/.sdkman"
  106. [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"