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.

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