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.

83 lines
1.9 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 ~/.zsh_secret ]; then
  27. source ~/.zsh_secret
  28. fi
  29. source ~/.cmds
  30. [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
  31. export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241,bold'
  32. export KEYTIMEOUT=5
  33. # added by travis gem
  34. [ ! -s /home/yigit/.travis/travis.sh ] || source /home/yigit/.travis/travis.sh
  35. function x11-clip-wrap-widgets() {
  36. local copy_or_paste=$1
  37. shift
  38. for widget in $@; do
  39. if [[ $copy_or_paste == "copy" ]]; then
  40. eval "
  41. function _x11-clip-wrapped-$widget() {
  42. zle .$widget
  43. xclip -in -selection clipboard <<<\$CUTBUFFER
  44. }
  45. "
  46. else
  47. eval "
  48. function _x11-clip-wrapped-$widget() {
  49. CUTBUFFER=\$(xclip -out -selection clipboard)
  50. zle .$widget
  51. }
  52. "
  53. fi
  54. zle -N $widget _x11-clip-wrapped-$widget
  55. done
  56. }
  57. local copy_widgets=(
  58. vi-yank vi-yank-eol vi-delete vi-backward-kill-word vi-change-whole-line
  59. )
  60. local paste_widgets=(
  61. vi-put-{before,after}
  62. )
  63. x11-clip-wrap-widgets copy $copy_widgets
  64. x11-clip-wrap-widgets paste $paste_widgets