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.

142 lines
4.6 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 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="agnoster"
  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. # Preferred editor for local and remote sessions
  63. # if [[ -n $SSH_CONNECTION ]]; then
  64. # export EDITOR='vim'
  65. # else
  66. # export EDITOR='mvim'
  67. # fi
  68. # Compilation flags
  69. # export ARCHFLAGS="-arch x86_64"
  70. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  71. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  72. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  73. # For a full list of active aliases, run `alias`.
  74. #
  75. # Example aliases
  76. # alias zshconfig="mate ~/.zshrc"
  77. # alias ohmyzsh="mate ~/.oh-my-zsh"
  78. set -o vi
  79. alias gac='git add . && git commit'
  80. alias v='nvim'
  81. alias vn='nvim -u ~/.config/nvim_new/init.lua'
  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'
  92. alias vz='nvim ~/.zshrc'
  93. alias sz='source ~/.zshrc'
  94. alias sy='systemctl'
  95. # ~/.zshrc
  96. export MT_EDITOR=nvim
  97. export VISUAL=nvim
  98. export WORKSPACES=$HOME/Documents
  99. f() {
  100. fff "$@"
  101. cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")"
  102. }
  103. bindkey -s "^p" "~/.local/bin/tmuxs\n"
  104. #export TERM=linux
  105. export EDITOR=nvim
  106. export PATH=$HOME/.local/bin:$PATH
  107. export PATH=$HOME/go/bin:$PATH
  108. resetcursor() {
  109. # must be wrapped like this so zsh knows it's zero characters.
  110. echo -e '%{\e]50;CursorShape=1%}'
  111. }
  112. export PS1="$(resetcursor)$PS1"