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.

251 lines
6.3 KiB

5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 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
4 years ago
5 years ago
5 years ago
5 years ago
3 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
4 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. {{ if eq .chezmoi.hostname "nzxt" }}
  15. set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
  16. set -U mfs_dir "/home/kevin/coding/mf-site"
  17. source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
  18. abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
  19. {{ end }}#]]]
  20. # system [[[
  21. set -x HASTE_SERVER https://pste.gq
  22. {{ if eq .chezmoi.hostname "nzxt" }}
  23. set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  24. {{ end }}
  25. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  26. set -x GOPATH ~/go
  27. # set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  28. set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin
  29. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  30. # Java [[[ #
  31. set -x GRAALVM_HOME /usr/lib/jvm/graalvm-ce-java11-21.1.0
  32. set -x GRAALVM_BIN $GRAALVM_HOME/bin
  33. set -x JAVA_HOME $GRAALVM_HOME
  34. # set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk
  35. # set -x JAVA_HOME /usr/lib/jvm/java-8-openjdk # for shared libs
  36. set -x PATH $JAVA_HOME/bin $PATH
  37. # ]]] Java #
  38. # system ]]]
  39. # space prompt[[[
  40. # 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
  41. set SPACEFISH_ADD_NEWLINE false
  42. set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  43. set SPACEFISH_DIR_PREFIX ''
  44. set SPACEFISH_DIR_TRUNC 0
  45. set SPACEFISH_DIR_TRUNC_REPO false
  46. set SPACEFISH_VI_MODE_INSERT ''
  47. set SPACEFISH_VI_MODE_NORMAL '[n] '
  48. set SPACEFISH_VI_MODE_SUFFIX ''
  49. #]]]
  50. # pass[[[
  51. set -x PASSWORD_STORE_CLIP_TIME 120
  52. set -xU XSET_RATE 90
  53. set -xU XSET_DELAY 200
  54. {{ if and (eq .chezmoi.hostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  55. xset r rate $XSET_DELAY $XSET_RATE
  56. {{ end }}#]]]
  57. set -xU BROWSER "firefox"
  58. # set -U BROWSER "chromium"
  59. set -xU FZF_DEFAULT_COMMAND "find ."
  60. set -x PHONE_IP "192.168.0.12"
  61. set -x PIXEL_IP "192.168.0.18"
  62. set -x WORK_LAPTOP_IP "kmok@192.168.0.11"
  63. {{ if eq .chezmoi.hostname "nzxt" }}
  64. # set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  65. set -x JENKINS_TOKEN 114a1b2e8693b57fa6f4bce88e2deee8cc
  66. status --is-interactive; and source (pyenv init -|psub)
  67. {{ end }}
  68. set -xU MINIKUBE_IP "http://192.168.49.2"
  69. set -xU LOCAL_KOGITO_SERVICE_PORT "32000"
  70. # set -xU LOCAL_KOGITO_SERVICE_URL "$MINIKUBE_IP:$LOCAL_KOGITO_SERVICE_PORT"
  71. set -x FLASK_DEBUG 1
  72. set -x DB_NAME "covid_monitor"
  73. # ]]] universal var's #
  74. # fish-specific [[[ #
  75. fish_vi_key_bindings
  76. set -x EDITOR nvim
  77. set -x VISUAL nvim
  78. set -U fish_help_browser firefox
  79. builtin cd $last_dir && ls > /dev/null
  80. # builtin cd $last_dir
  81. bind \ce edit_command_buffer
  82. bind \cr forward-word
  83. # chezmoi apply
  84. {{ if not (eq .linux_os "termux") }}
  85. ~/scripts/sync-shortcuts
  86. {{ end }}
  87. # source ~/.config/fish/key_abbr.fish > /dev/null
  88. set -U fish_fxn_dir "{{ .chezmoi.homeDir }}/linux-config/dot_config/fish/functions"
  89. # set -U fish_fxn_dir "~/.config/fish/functions"
  90. abbr ff "cd $fish_fxn_dir"
  91. for fxn in (find $fish_fxn_dir -name '*.fish')
  92. source $fxn
  93. end
  94. abbr ab "abbr"
  95. abbr abe "abbr -e"
  96. abbr hm "history merge"
  97. abbr hs "history search --show-time"
  98. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  99. abbr f. "cd .."
  100. abbr f.. "cd ../.."
  101. abbr hsm "history merge"
  102. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  103. abbr xf "fish_config"
  104. # ]]] fish-specific #
  105. # fxn abbr's [[[ #
  106. abbr ! "sudo !!"
  107. # task [[[ #
  108. abbr aan "task-anno ''"
  109. abbr ae "task-edit"
  110. abbr adl "task-delete"
  111. abbr adn "task-done"
  112. abbr adu "task-due"
  113. abbr adr "task-due-rm"
  114. abbr an "task-next"
  115. abbr anr "task-next-rm"
  116. abbr ant "task-notes"
  117. abbr apr "task-mod-pri"
  118. abbr aprl "task-mod-pri L"
  119. abbr aprm "task-mod-pri M"
  120. abbr aprn "task-mod-pri ''"
  121. abbr aprh "task-mod-pri H"
  122. abbr apj "task-mod-proj"
  123. abbr asr "task-start"
  124. abbr at "task-mod-tag"
  125. abbr atj "task-mod-tag jira"
  126. abbr aw "task-wait"
  127. abbr ax "task-context"
  128. # ]]] task #
  129. abbr ag "grep-aliases"
  130. abbr bk "buku-fzf"
  131. abbr bkf "buku-fzf fq"
  132. abbr bq "benq-brightness"
  133. abbr bn "discord-burner"
  134. abbr bun "backup nzxt"
  135. abbr bupp "backup-phone-pics"
  136. abbr ca "cad-to-us"
  137. abbr cccs "sync-alt-cal class"
  138. abbr cl "clip"
  139. abbr cpc "copy cat"
  140. abbr cpe "copy echo"
  141. abbr cpp "copy echo (pwd)"
  142. abbr cff "create-fish-function"
  143. abbr ctr "systemctl-restart"
  144. abbr def "define"
  145. abbr drs "dump-rarity-check"
  146. abbr ens "enable-site"
  147. abbr ev "evince-silent"
  148. abbr ff "fzf-cd"
  149. # abbr fbg "find-bg"
  150. # abbr fr "fzf-ranger"
  151. abbr fv "fzf-vim"
  152. abbr fvft "find-vim-filetype"
  153. # git [[[ #
  154. abbr gcamp "git-amend-push"
  155. abbr gclg "git-clone-gitea"
  156. abbr gdf "git-diff-files"
  157. abbr gpsd "git-push-diff-name"
  158. abbr gpsi "git-push-initial"
  159. abbr gpsmt "git-push-multiple"
  160. abbr gpng "git-push-new-gitea"
  161. abbr gpngg "git-push-new-gitea gitea"
  162. abbr gremotes "git-mult-remotes"
  163. abbr grmb "git-delete-branch"
  164. abbr gro "git-replace-origin"
  165. abbr grog "git-replace-origin-gitea"
  166. abbr gsmb "git-submodule-branch"
  167. # ]]] git #
  168. abbr i "sxiv-silent"
  169. abbr lo "libreoffice-silent"
  170. abbr ma "man-vim task"
  171. abbr mat "math"
  172. abbr mn "man-vim"
  173. abbr mdf "mkdir-cd"
  174. abbr mtm "maven-test-method"
  175. abbr pgr "grep-pdf"
  176. abbr pgrf "grep-pdf-file"
  177. abbr pst "pastebin"
  178. abbr qh "qalc-history"
  179. abbr qu "qalc-update"
  180. abbr re "reminder ''"
  181. abbr rf "refresh-config"
  182. abbr rl "readlink-cp"
  183. abbr rds "redshift-set"
  184. abbr scf "scp-vid fn"
  185. abbr sma "smol-add"
  186. abbr smd "smol-delete"
  187. abbr sml "smol-slist"
  188. abbr smr "smol-replace"
  189. abbr shrm "shred-rm"
  190. abbr shs "scan-history"
  191. abbr svp "server-pages"
  192. abbr ta "tmux-attach"
  193. abbr taa "tmux-attach atx"
  194. abbr taf "tmux-attach fn"
  195. abbr tan "tmux-attach nft"
  196. abbr tan2 "tmux-attach nft-2"
  197. abbr tao "tmux-attach obs"
  198. abbr thes "thesaurus"
  199. # abbr usc "us-to-cad"
  200. abbr us "us-to-cad"
  201. abbr ut "unix-timestamp"
  202. abbr uzr "unzip-rm"
  203. abbr vsnp "vim-snippet"
  204. abbr wga "wget-all"
  205. abbr wag "watson-add-game"
  206. abbr waf "watson-add-game fortnite"
  207. abbr wap "watson-add-game pokemon-go"
  208. abbr xya "export-pkgs"
  209. # school [[[ #
  210. # ]]] school #
  211. # ]]] fxn abbr's #
  212. # task sync > /dev/null 2>&1
  213. # ~/scripts/xmodmap-custom