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.

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