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.

111 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. # }}} fish-specific #
  32. # universal var's {{{ #
  33. # spv
  34. set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
  35. set -U mfs_dir "/home/kevin/coding/mf-site"
  36. set -x PATH $PATH /home/kevin/scripts /home/kevin/scripts/colors /home/kevin/go/bin
  37. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  38. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  39. set -x PASSWORD_STORE_CLIP_TIME 120
  40. set -xU XSET_RATE 90
  41. set -xU XSET_DELAY 200
  42. # causes xmodmap to have issues when opening terminal sometimes
  43. # xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
  44. # xset r rate $XSET_DELAY $XSET_RATE
  45. # set -U BROWSER "chromium"
  46. set -U BROWSER "firefox"
  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 mt "math"
  66. abbr pgr "grep-pdf"
  67. abbr pgrf "grep-pdf-file"
  68. abbr rs "redshift-set"
  69. abbr ut "unix-timestamp"
  70. abbr uzr "unzip-rm"
  71. # }}} fxn abbr's #
  72. abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
  73. # school {{{ #
  74. # 309
  75. # abbr r0t "./revert-e3-json restaurants"
  76. # abbr r0s "./revert-e3-json reservations"
  77. # 369
  78. abbr grc "grep-c"
  79. abbr grh "grep-headers"
  80. abbr rgh "rg-headers"
  81. abbr r6 "run-a4 h e"
  82. # abbr r6 "run-a3 f d o"
  83. # abbr r6g "run-a3 f d g"
  84. # abbr r6s "run-a3 s c o"
  85. # abbr g6 "source $fish_fxn_dir/369/a3/gdb-a3-break.fish && gdb-a3-break c c"
  86. # }}} school #