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.

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