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
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. ~/scripts/sync-shortcuts
  22. # source ~/.config/fish/key_abbr.fish > /dev/null
  23. set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
  24. # set -U fish_fxn_dir "~/.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 && sync-shortcuts && source ~/.config/fish/key_abbr.fish > /dev/null"
  30. abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  31. abbr xf "fish_config"
  32. abbr f. "cd .."
  33. abbr f.. "cd ../.."
  34. # ]]] fish-specific #
  35. # universal var's [[[ #
  36. # spv
  37. {{ if eq .chezmoi.fullHostname "nzxt" }}
  38. set -U spv_dir "~/coding/spotify-lib-vis"
  39. set -U mfs_dir "~/coding/mf-site"
  40. {{ end }}
  41. set -x PATH $PATH ~/scripts ~/scripts/colors ~/go/bin
  42. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  43. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  44. set -x PASSWORD_STORE_CLIP_TIME 120
  45. set -xU XSET_RATE 90
  46. set -xU XSET_DELAY 200
  47. # causes xmodmap to have issues when opening terminal sometimes
  48. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  49. {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  50. xset r rate $XSET_DELAY $XSET_RATE
  51. {{ end }}
  52. # set -U BROWSER "chromium"
  53. set -U BROWSER "firefox"
  54. # ]]] universal var's #
  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 #