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.

109 lines
2.5 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
  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. /home/kevin/linux-config/scripts/sync-shortcuts
  18. source /home/kevin/.config/fish/key_abbr.fish
  19. set -U fish_fxn_dir "/home/kevin/linux-config/fish/.config/fish/functions"
  20. abbr ff "cd $fish_fxn_dir"
  21. for fxn in (find $fish_fxn_dir -name '*.fish')
  22. source $fxn
  23. end
  24. abbr rf "source ~/.config/fish/config.fish"
  25. abbr rfs "sync-shortcuts && source ~/.config/fish/config.fish"
  26. abbr xf "fish_config"
  27. abbr f. "cd .."
  28. abbr f.. "cd ../.."
  29. abbr mt "math"
  30. # }}} fish-specific #
  31. # universal var's {{{ #
  32. # spv
  33. set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
  34. set -U mfs_dir "/home/kevin/coding/mf-site"
  35. # set -U PATH /usr/local/sbin /usr/local/bin /usr/bin /usr/bin/site_perl
  36. # /usr/bin/vendor_perl /usr/bin/core_perl /home/kevin/linux-config/scripts
  37. # /home/kevin/linux-config/scripts/colors
  38. # (ruby -e 'print Gem.user_dir')/bin
  39. set -x PATH $PATH /home/kevin/linux-config/scripts /home/kevin/linux-config/scripts/colors /home/kevin/go/bin
  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 #