Another copy of my dotfiles. Because I don't completely trust GitHub.
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.

99 lines
2.2 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. eval "$(direnv hook zsh)" >> /tmp/direnv
  2. paleofetch
  3. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  4. source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
  5. fi
  6. source ~/.profile
  7. # Created by kuro for 5.8
  8. source <(antibody init)
  9. HISTFILE=~/.zsh_history
  10. HISTSIZE=100000
  11. SAVEHIST=100000
  12. setopt appendhistory
  13. #Autocompletion
  14. autoload -Uz compinit
  15. compinit
  16. antibody bundle < ~/.config/antibody/zsh_plugins.txt
  17. [[ ! -f ~/.config/antibody/p10k.zsh ]] || source ~/.config/antibody/p10k.zsh
  18. bindkey "^[[H" beginning-of-line
  19. bindkey "^[[F" end-of-line
  20. bindkey "^[[3~" delete-char
  21. bindkey "^[[1;5C" forward-word
  22. bindkey "^[[1;5D" backward-word
  23. fpath=(~/.completions $fpath)
  24. autoload -Uz compinit && compinit
  25. source ~/.aliases
  26. if [ -f ~/.local_aliases ]; then
  27. source ~/.local_aliases
  28. fi
  29. if [ -f ~/.zsh_secret ]; then
  30. source ~/.zsh_secret
  31. fi
  32. source ~/.cmds
  33. [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
  34. export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241,bold'
  35. export KEYTIMEOUT=5
  36. # added by travis gem
  37. [ ! -s /home/yigit/.travis/travis.sh ] || source /home/yigit/.travis/travis.sh
  38. function x11-clip-wrap-widgets() {
  39. local copy_or_paste=$1
  40. shift
  41. for widget in $@; do
  42. if [[ $copy_or_paste == "copy" ]]; then
  43. eval "
  44. function _x11-clip-wrapped-$widget() {
  45. zle .$widget
  46. xclip -in -selection clipboard <<<\$CUTBUFFER
  47. }
  48. "
  49. else
  50. eval "
  51. function _x11-clip-wrapped-$widget() {
  52. CUTBUFFER=\$(xclip -out -selection clipboard)
  53. zle .$widget
  54. }
  55. "
  56. fi
  57. zle -N $widget _x11-clip-wrapped-$widget
  58. done
  59. }
  60. # Better completion
  61. zstyle ':completion:*' matcher-list '' \
  62. 'm:{a-z\-}={A-Z\_}' \
  63. 'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \
  64. 'r:|?=** m:{a-z\-}={A-Z\_}'
  65. local copy_widgets=(
  66. vi-yank vi-yank-eol vi-delete vi-backward-kill-word vi-change-whole-line
  67. )
  68. local paste_widgets=(
  69. vi-put-{before,after}
  70. )
  71. # Use X11 Clipboard
  72. x11-clip-wrap-widgets copy $copy_widgets
  73. x11-clip-wrap-widgets paste $paste_widgets
  74. autoload -U +X bashcompinit && bashcompinit
  75. complete -o nospace -C /usr/bin/mc mc