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.

202 lines
4.9 KiB

4 years ago
5 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
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 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
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 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. abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
  20. {{ end }}#]]]
  21. # system[[[
  22. set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  23. set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
  24. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  25. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  26. set -x HASTE_SERVER https://pste.gq
  27. {{ if eq .chezmoi.fullHostname "nzxt" }}
  28. set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  29. status --is-interactive; and source (pyenv init -|psub)
  30. {{ end }}
  31. #]]]
  32. # space prompt[[[
  33. 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
  34. # set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  35. set SPACEFISH_DIR_PREFIX ''
  36. set SPACEFISH_DIR_TRUNC 0
  37. set SPACEFISH_DIR_TRUNC_REPO false
  38. set SPACEFISH_VI_MODE_INSERT ''
  39. set SPACEFISH_VI_MODE_NORMAL '[n] '
  40. set SPACEFISH_VI_MODE_SUFFIX ''
  41. #]]]
  42. # pass[[[
  43. set -x PASSWORD_STORE_CLIP_TIME 120
  44. set -xU XSET_RATE 90
  45. set -xU XSET_DELAY 200
  46. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  47. xset r rate $XSET_DELAY $XSET_RATE
  48. {{ end }}#]]]
  49. # set -U BROWSER "chromium"
  50. set -xU BROWSER "firefox"
  51. set -xU FZF_DEFAULT_COMMAND "find ."
  52. # ]]] universal var's #
  53. # fish-specific [[[ #
  54. fish_vi_key_bindings
  55. set -x EDITOR nvim
  56. set -x VISUAL nvim
  57. set -U fish_help_browser firefox
  58. builtin cd $last_dir && ls > /dev/null
  59. # builtin cd $last_dir
  60. bind \ce edit_command_buffer
  61. bind \cr forward-word
  62. chezmoi apply
  63. {{ if not (eq .linux_os "termux") }}
  64. ~/scripts/sync-shortcuts
  65. {{ end }}
  66. # source ~/.config/fish/key_abbr.fish > /dev/null
  67. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  68. # set -U fish_fxn_dir "~/.config/fish/functions"
  69. abbr ff "cd $fish_fxn_dir"
  70. for fxn in (find $fish_fxn_dir -name '*.fish')
  71. source $fxn
  72. end
  73. abbr ab "abbr"
  74. abbr abe "abbr -e"
  75. abbr hm "history merge"
  76. abbr hs "history search --show-time"
  77. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  78. abbr f. "cd .."
  79. abbr f.. "cd ../.."
  80. abbr hsm "history merge"
  81. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  82. abbr xf "fish_config"
  83. # ]]] fish-specific #
  84. # fxn abbr's [[[ #
  85. abbr ! "sudo !!"
  86. # task [[[ #
  87. abbr aan "task-anno"
  88. abbr ae "task-edit"
  89. abbr adl "task-delete"
  90. abbr adn "task-done"
  91. abbr adu "task-due"
  92. abbr adr "task-due-rm"
  93. abbr an "task-next"
  94. abbr anr "task-next-rm"
  95. abbr ant "task-notes"
  96. abbr apr "task-mod-pri"
  97. abbr aprl "task-mod-pri L"
  98. abbr aprm "task-mod-pri M"
  99. abbr aprn "task-mod-pri ''"
  100. abbr aprh "task-mod-pri H"
  101. abbr apj "task-mod-proj"
  102. abbr asr "task-start"
  103. abbr at "task-mod-tag"
  104. abbr aw "task-wait"
  105. abbr ax "task-context"
  106. # ]]] task #
  107. abbr ag "grep-aliases"
  108. abbr b "buku-fzf"
  109. abbr bf "buku-fzf fq"
  110. abbr bq "benq-brightness"
  111. abbr bupp "backup-phone-pics"
  112. abbr cccs "sync-alt-cal class"
  113. abbr cpc "copy cat"
  114. abbr cpe "copy echo"
  115. abbr cpp "copy echo (pwd)"
  116. abbr cff "create-fish-function"
  117. abbr ctr "systemctl-restart"
  118. abbr def "define"
  119. abbr ens "enable-site"
  120. abbr ev "evince-silent"
  121. # abbr fbg "find-bg"
  122. abbr fn "fzf-vim"
  123. abbr fvft "find-vim-filetype"
  124. # git [[[ #
  125. abbr gcamp "git-amend-push"
  126. abbr gclg "git-clone-gitea"
  127. abbr gdf "git-diff-files"
  128. abbr gpsi "git-push-initial"
  129. abbr gpsmt "git-push-multiple"
  130. abbr gpng "git-push-new-gitea origin"
  131. abbr gpngg "git-push-new-gitea gitea"
  132. abbr gremotes "git-mult-remotes"
  133. abbr grmb "git-delete-branch"
  134. abbr gro "git-replace-origin"
  135. abbr grog "git-replace-origin-gitea"
  136. abbr gsmb "git-submodule-branch"
  137. # ]]] git #
  138. abbr m "man-vim"
  139. abbr ma "man-vim task"
  140. abbr mat "math"
  141. abbr mdf "mkdir-cd"
  142. abbr pgr "grep-pdf"
  143. abbr pgrf "grep-pdf-file"
  144. abbr png "git-push-new-gitea"
  145. abbr pst "pastebin"
  146. abbr qh "qalc-history"
  147. abbr rf "refresh-config"
  148. abbr rs "redshift-set"
  149. abbr sma "smol-add"
  150. abbr smd "smol-delete"
  151. abbr sml "smol-slist"
  152. abbr smr "smol-replace"
  153. abbr shrm "shred-rm"
  154. abbr shs "scan-history"
  155. abbr svp "server-pages"
  156. abbr thes "thesaurus"
  157. abbr usc "us-to-cad"
  158. abbr ut "unix-timestamp"
  159. abbr uzr "unzip-rm"
  160. abbr vsnp "vim-snippet"
  161. abbr xya "export-pkgs"
  162. # school [[[ #
  163. # 369
  164. abbr grc "grep-c"
  165. abbr grh "grep-headers"
  166. abbr rgh "rg-headers"
  167. abbr jcr "java-compile-run"
  168. abbr jct "java-compile-test"
  169. # ]]] school #
  170. # ]]] fxn abbr's #
  171. # task sync > /dev/null 2>&1
  172. # ~/scripts/xmodmap-custom