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.

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