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.

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