Dotfiles for my tiling window manager + terminal workflow.
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.

147 lines
3.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. # vim: fdm=marker ft=fish.go-template
  2. # login to X [[[ #
  3. {{ if eq .chezmoi.username "kevin" }}
  4. if status is-login
  5. if test -z "$DISPLAY" -a $XDG_VTNR = 1
  6. exec startx -- -keeptty
  7. end
  8. end
  9. set -x GPG_TTY (tty)
  10. {{ end }}
  11. # ]]] login to X #
  12. # universal var's [[[ #
  13. set -U fish_greeting
  14. # spv
  15. {{ if eq .chezmoi.fullHostname "nzxt" }}
  16. set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
  17. set -U mfs_dir "/home/kevin/coding/mf-site"
  18. source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
  19. {{ end }}
  20. set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  21. set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
  22. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  23. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  24. set -x HASTE_SERVER https://pste.gq
  25. {{ if eq .linux_os "termux" }}
  26. # set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
  27. set SPACEFISH_DIR_PREFIX ''
  28. set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  29. set SPACEFISH_VI_MODE_INSERT ''
  30. set SPACEFISH_VI_MODE_NORMAL '[n] '
  31. set SPACEFISH_VI_MODE_SUFFIX ''
  32. {{ end }}
  33. set -x PASSWORD_STORE_CLIP_TIME 120
  34. set -xU XSET_RATE 90
  35. set -xU XSET_DELAY 200
  36. # causes xmodmap to have issues when opening terminal sometimes
  37. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  38. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  39. xset r rate $XSET_DELAY $XSET_RATE
  40. {{ end }}
  41. # set -U BROWSER "chromium"
  42. set -U BROWSER "firefox"
  43. # ]]] universal var's #
  44. # fish-specific [[[ #
  45. fish_vi_key_bindings
  46. set -x EDITOR nvim
  47. set -x VISUAL nvim
  48. set -U fish_help_browser firefox
  49. builtin cd $last_dir && ls > /dev/null
  50. # builtin cd $last_dir
  51. bind \ce edit_command_buffer
  52. bind \cr forward-word
  53. chezmoi apply
  54. {{ if not (eq .linux_os "termux") }}
  55. ~/scripts/sync-shortcuts
  56. {{ end }}
  57. source ~/.config/fish/key_abbr.fish > /dev/null
  58. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  59. # set -U fish_fxn_dir "~/.config/fish/functions"
  60. abbr ff "cd $fish_fxn_dir"
  61. for fxn in (find $fish_fxn_dir -name '*.fish')
  62. source $fxn
  63. end
  64. abbr ab "abbr"
  65. abbr abe "abbr -e"
  66. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  67. abbr f. "cd .."
  68. abbr f.. "cd ../.."
  69. abbr hsm "history merge"
  70. abbr xf "fish_config"
  71. # ]]] fish-specific #
  72. # fxn abbr's [[[ #
  73. abbr ! "sudo !!"
  74. abbr ag "grep-aliases"
  75. abbr b "buku-fzf"
  76. abbr bf "buku-fzf fq"
  77. abbr bq "benq-brightness"
  78. abbr bupp "backup-phone-pics"
  79. abbr cpc "copy cat"
  80. abbr cpe "copy echo"
  81. abbr cpp "copy echo (pwd)"
  82. abbr cff "create-fish-function"
  83. abbr def "define"
  84. abbr ev "evince-silent"
  85. # abbr fbg "find-bg"
  86. abbr fvft "find-vim-filetype"
  87. abbr fzv "fzf-vim"
  88. # git [[[ #
  89. abbr gcamp "git-amend-push"
  90. abbr gdf "git-diff-files"
  91. abbr gpsmt "git-push-multiple"
  92. abbr gremotes "git-mult-remotes"
  93. abbr grmb "git-delete-branch"
  94. abbr gro "git-replace-origin"
  95. # ]]] git #
  96. abbr hs "scan-history"
  97. abbr mn "man-vim"
  98. abbr mat "math"
  99. abbr pgr "grep-pdf"
  100. abbr pgrf "grep-pdf-file"
  101. abbr png "git-push-new-gitea"
  102. abbr pst "pastebin"
  103. abbr rf "refresh-config"
  104. abbr rs "redshift-set"
  105. abbr shrm "shred-rm"
  106. abbr thes "thesaurus"
  107. abbr ut "unix-timestamp"
  108. abbr uzr "unzip-rm"
  109. abbr vsnp "vim-snippet"
  110. abbr xya "export-pkgs"
  111. # school [[[ #
  112. # 369
  113. abbr grc "grep-c"
  114. abbr grh "grep-headers"
  115. abbr rgh "rg-headers"
  116. abbr jcr "java-compile-run"
  117. abbr jct "java-compile-test"
  118. # ]]] school #
  119. # ]]] fxn abbr's #
  120. abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"