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.

119 lines
2.7 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
  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. {{ end }}
  18. set -x PATH $PATH ~/scripts ~/scripts/colors ~/go/bin
  19. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  20. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  21. set -x PASSWORD_STORE_CLIP_TIME 120
  22. set -xU XSET_RATE 90
  23. set -xU XSET_DELAY 200
  24. # causes xmodmap to have issues when opening terminal sometimes
  25. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  26. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  27. xset r rate $XSET_DELAY $XSET_RATE
  28. {{ end }}
  29. # set -U BROWSER "chromium"
  30. set -U BROWSER "firefox"
  31. # ]]] universal var's #
  32. # fish-specific [[[ #
  33. fish_vi_key_bindings
  34. set -x EDITOR nvim
  35. set -x VISUAL nvim
  36. set -U fish_help_browser firefox
  37. builtin cd $last_dir
  38. bind \ce edit_command_buffer
  39. bind \cr forward-word
  40. chezmoi apply
  41. ~/scripts/sync-shortcuts
  42. # source ~/.config/fish/key_abbr.fish > /dev/null
  43. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  44. # set -U fish_fxn_dir "~/.config/fish/functions"
  45. abbr ff "cd $fish_fxn_dir"
  46. for fxn in (find $fish_fxn_dir -name '*.fish')
  47. source $fxn
  48. end
  49. abbr rf "chezmoi apply && sync-shortcuts && source ~/.config/fish/key_abbr.fish > /dev/null"
  50. abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  51. abbr xf "fish_config"
  52. abbr f. "cd .."
  53. abbr f.. "cd ../.."
  54. # ]]] fish-specific #
  55. # fxn abbr's [[[ #
  56. abbr ag "grep-aliases"
  57. abbr bq "benq-brightness"
  58. abbr cpc "copy cat"
  59. abbr cpe "copy echo"
  60. abbr cpp "copy echo (pwd)"
  61. abbr cff "create-fish-function"
  62. abbr ev "evince-silent"
  63. # git [[[ #
  64. abbr gcamp "git-amend-push"
  65. abbr gdf "git-diff-files"
  66. abbr gpsmt "git-push-multiple"
  67. abbr gremotes "git-mult-remotes"
  68. abbr grmb "git-delete-branch"
  69. # ]]] git #
  70. abbr hs "scan-history"
  71. abbr hst "$EDITOR ~/.local/share/fish/fish_history"
  72. abbr mt "math"
  73. abbr pgr "grep-pdf"
  74. abbr pgrf "grep-pdf-file"
  75. abbr rs "redshift-set"
  76. abbr ut "unix-timestamp"
  77. abbr uzr "unzip-rm"
  78. # ]]] fxn abbr's #
  79. abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
  80. # school [[[ #
  81. # 309
  82. # abbr r0t "./revert-e3-json restaurants"
  83. # abbr r0s "./revert-e3-json reservations"
  84. # 369
  85. abbr grc "grep-c"
  86. abbr grh "grep-headers"
  87. abbr rgh "rg-headers"
  88. abbr r6 "run-a4 h e"
  89. # abbr r6 "run-a3 f d o"
  90. # abbr r6g "run-a3 f d g"
  91. # abbr r6s "run-a3 s c o"
  92. # abbr g6 "source $fish_fxn_dir/369/a3/gdb-a3-break.fish && gdb-a3-break c c"
  93. # ]]] school #