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.

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