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.

123 lines
2.8 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 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 ~/scripts ~/scripts/colors ~/go/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 PASSWORD_STORE_CLIP_TIME 120
  24. set -xU XSET_RATE 90
  25. set -xU XSET_DELAY 200
  26. # causes xmodmap to have issues when opening terminal sometimes
  27. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  28. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  29. xset r rate $XSET_DELAY $XSET_RATE
  30. {{ end }}
  31. # set -U BROWSER "chromium"
  32. set -U BROWSER "firefox"
  33. # ]]] universal var's #
  34. # fish-specific [[[ #
  35. fish_vi_key_bindings
  36. set -x EDITOR nvim
  37. set -x VISUAL nvim
  38. set -U fish_help_browser firefox
  39. builtin cd $last_dir
  40. bind \ce edit_command_buffer
  41. bind \cr forward-word
  42. chezmoi apply
  43. ~/scripts/sync-shortcuts
  44. # source ~/.config/fish/key_abbr.fish > /dev/null
  45. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  46. # set -U fish_fxn_dir "~/.config/fish/functions"
  47. abbr ff "cd $fish_fxn_dir"
  48. for fxn in (find $fish_fxn_dir -name '*.fish')
  49. source $fxn
  50. end
  51. abbr ab "abbr"
  52. abbr abe "abbr -e"
  53. abbr rf "chezmoi apply && sync-shortcuts && source ~/.config/fish/key_abbr.fish > /dev/null"
  54. abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  55. abbr xf "fish_config"
  56. abbr f. "cd .."
  57. abbr f.. "cd ../.."
  58. # ]]] fish-specific #
  59. # fxn abbr's [[[ #
  60. abbr ag "grep-aliases"
  61. abbr bq "benq-brightness"
  62. abbr cpc "copy cat"
  63. abbr cpe "copy echo"
  64. abbr cpp "copy echo (pwd)"
  65. abbr cff "create-fish-function"
  66. abbr def "define"
  67. abbr ev "evince-silent"
  68. abbr fbg "find-bg"
  69. abbr fzv "fzf-vim"
  70. # git [[[ #
  71. abbr gcamp "git-amend-push"
  72. abbr gdf "git-diff-files"
  73. abbr gpsmt "git-push-multiple"
  74. abbr gremotes "git-mult-remotes"
  75. abbr grmb "git-delete-branch"
  76. # ]]] git #
  77. abbr hs "scan-history"
  78. abbr hst "$EDITOR ~/.local/share/fish/fish_history"
  79. abbr mt "math"
  80. abbr pgr "grep-pdf"
  81. abbr pgrf "grep-pdf-file"
  82. abbr rs "redshift-set"
  83. abbr shrm "shred-rm"
  84. abbr thes "thesaurus"
  85. abbr ut "unix-timestamp"
  86. abbr uzr "unzip-rm"
  87. abbr vsnp "vim-snippet"
  88. abbr fvft "find-vim-filetype"
  89. # ]]] fxn abbr's #
  90. abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
  91. # school [[[ #
  92. # 369
  93. abbr grc "grep-c"
  94. abbr grh "grep-headers"
  95. abbr rgh "rg-headers"
  96. abbr jcr "java-compile-run"
  97. abbr jct "java-compile-test"
  98. # ]]] school #