You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
4.4 KiB

3 years ago
  1. # If you come from bash you might have to change your $PATH.
  2. # export PATH=$HOME/bin:/usr/local/bin:$PATH
  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 zsh-syntax-highlighting)
  58. source $ZSH/oh-my-zsh.sh
  59. # User configuration
  60. # export MANPATH="/usr/local/man:$MANPATH"
  61. # You may need to manually set your language environment
  62. # export LANG=en_US.UTF-8
  63. # Preferred editor for local and remote sessions
  64. # if [[ -n $SSH_CONNECTION ]]; then
  65. # export EDITOR='vim'
  66. # else
  67. # export EDITOR='mvim'
  68. # fi
  69. # Compilation flags
  70. # export ARCHFLAGS="-arch x86_64"
  71. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  72. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  73. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  74. # For a full list of active aliases, run `alias`.
  75. #
  76. # Example aliases
  77. # alias zshconfig="mate ~/.zshrc"
  78. # alias ohmyzsh="mate ~/.oh-my-zsh"
  79. set -o vi
  80. alias gac='git add . && git commit'
  81. alias v='nvim'
  82. alias s='ls'
  83. #alias sy='systemctl'
  84. #alias j='journalctl'
  85. #alias r='source ranger'
  86. alias c='clear'
  87. alias e='exit'
  88. alias o='xdg-open'
  89. #alias ec='emacsclient'
  90. alias cp='cp -r'
  91. alias vc='nvim ~/.config/nvim/init.vim'
  92. # ~/.zshrc
  93. export MT_EDITOR=nvim
  94. export VISUAL=nvim
  95. eval "$(starship init zsh)"
  96. f() {
  97. fff "$@"
  98. cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")"
  99. }
  100. #export TERM=linux
  101. export EDITOR=nvim
  102. export PATH=~/cp:$PATH
  103. resetcursor() {
  104. printf '\033]50;CursorShape=1\x7'
  105. }
  106. export PS1="$(resetcursor)$PS1"