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.

145 lines
3.6 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
  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. # spv
  14. {{ if eq .chezmoi.fullHostname "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. {{ end }}
  19. set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  20. set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
  21. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  22. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  23. set -x HASTE_SERVER https://pste.gq
  24. {{ if eq .linux_os "termux" }}
  25. # 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
  26. set SPACEFISH_DIR_PREFIX ''
  27. set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  28. set SPACEFISH_VI_MODE_INSERT ''
  29. set SPACEFISH_VI_MODE_NORMAL '[n] '
  30. set SPACEFISH_VI_MODE_SUFFIX ''
  31. {{ end }}
  32. set -x PASSWORD_STORE_CLIP_TIME 120
  33. set -xU XSET_RATE 90
  34. set -xU XSET_DELAY 200
  35. # causes xmodmap to have issues when opening terminal sometimes
  36. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  37. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  38. xset r rate $XSET_DELAY $XSET_RATE
  39. {{ end }}
  40. # set -U BROWSER "chromium"
  41. set -U BROWSER "firefox"
  42. # ]]] universal var's #
  43. # fish-specific [[[ #
  44. fish_vi_key_bindings
  45. set -x EDITOR nvim
  46. set -x VISUAL nvim
  47. set -U fish_help_browser firefox
  48. builtin cd $last_dir && ls > /dev/null
  49. # builtin cd $last_dir
  50. bind \ce edit_command_buffer
  51. bind \cr forward-word
  52. chezmoi apply
  53. {{ if not (eq .linux_os "termux") }}
  54. ~/scripts/sync-shortcuts
  55. {{ end }}
  56. source ~/.config/fish/key_abbr.fish > /dev/null
  57. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  58. # set -U fish_fxn_dir "~/.config/fish/functions"
  59. abbr ff "cd $fish_fxn_dir"
  60. for fxn in (find $fish_fxn_dir -name '*.fish')
  61. source $fxn
  62. end
  63. abbr ab "abbr"
  64. abbr abe "abbr -e"
  65. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  66. abbr f. "cd .."
  67. abbr f.. "cd ../.."
  68. abbr hsm "history merge"
  69. abbr xf "fish_config"
  70. # ]]] fish-specific #
  71. # fxn abbr's [[[ #
  72. abbr ! "sudo !!"
  73. abbr ag "grep-aliases"
  74. abbr b "buku-fzf"
  75. abbr bf "buku-fzf fq"
  76. abbr bq "benq-brightness"
  77. abbr bupp "backup-phone-pics"
  78. abbr cpc "copy cat"
  79. abbr cpe "copy echo"
  80. abbr cpp "copy echo (pwd)"
  81. abbr cff "create-fish-function"
  82. abbr def "define"
  83. abbr ev "evince-silent"
  84. # abbr fbg "find-bg"
  85. abbr fvft "find-vim-filetype"
  86. abbr fzv "fzf-vim"
  87. # git [[[ #
  88. abbr gcamp "git-amend-push"
  89. abbr gdf "git-diff-files"
  90. abbr gpsmt "git-push-multiple"
  91. abbr gremotes "git-mult-remotes"
  92. abbr grmb "git-delete-branch"
  93. abbr gro "git-replace-origin"
  94. # ]]] git #
  95. abbr hs "scan-history"
  96. abbr mn "man-vim"
  97. abbr mat "math"
  98. abbr pgr "grep-pdf"
  99. abbr pgrf "grep-pdf-file"
  100. abbr png "git-push-new-gitea"
  101. abbr pst "pastebin"
  102. abbr rf "refresh-config"
  103. abbr rs "redshift-set"
  104. abbr shrm "shred-rm"
  105. abbr thes "thesaurus"
  106. abbr ut "unix-timestamp"
  107. abbr uzr "unzip-rm"
  108. abbr vsnp "vim-snippet"
  109. abbr xya "export-pkgs"
  110. # school [[[ #
  111. # 369
  112. abbr grc "grep-c"
  113. abbr grh "grep-headers"
  114. abbr rgh "rg-headers"
  115. abbr jcr "java-compile-run"
  116. abbr jct "java-compile-test"
  117. # ]]] school #
  118. # ]]] fxn abbr's #
  119. abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"