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.

313 lines
7.9 KiB

12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
12 months ago
10 months ago
6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
1 year ago
8 months ago
6 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 year ago
6 years ago
12 months ago
6 years ago
4 years ago
6 years ago
6 years ago
6 years ago
6 years ago
5 years ago
6 years ago
6 years ago
5 years ago
6 years ago
1 year ago
5 years ago
12 months ago
6 years ago
5 years ago
1 year ago
6 years ago
5 years ago
4 years ago
6 years ago
6 years ago
6 years ago
11 months ago
  1. # vim: fdm=marker ft=fish.go-template
  2. # aliases [[[ #
  3. # personal [[[ #
  4. # dirs [[[ #
  5. abbr cvt "cd ~/Pictures/profile-pics/conviction"
  6. abbr ets "cd /mnt/linux-files-2/Videos/eras-taylor-swift-movie"
  7. abbr hv "cd /mnt/linux-files-2/Pictures/hevin"
  8. abbr hvn "cd ~/coding/hevin-nft"
  9. abbr lon "libreoffice ~/Documents/expenses/net-worth.ods &"
  10. abbr lfs2 "cd /mnt/linux-files-2/Videos/shows"
  11. abbr mj "cd /mnt/linux-files-2/Pictures/midjourney"
  12. abbr pdg "cd ~/Pictures/profile-pics/pudgy-penguins/test"
  13. abbr snp "cd /mnt/linux-files-2/Videos/ipad/marvel-snap"
  14. abbr tr "cd ~/.local/share/Terraria"
  15. abbr da "cd /mnt/ipad/DCIM/102APPLE"
  16. # ]]] dirs #
  17. abbr ncy "nvim ~/Documents/journal/hobbies/courtyard-drop.md"
  18. abbr njt "nvim ~/Documents/journal/todo/24/2.md"
  19. abbr rsn "rsync -e 'ssh -p 399' -r . 165.22.239.234:/home/kevin/hevin/art -acvv"
  20. # ]]] personal #
  21. # school [[[ #
  22. abbr js "cd ~/Documents/job-search"
  23. abbr ssad "ssh -i ~/coding/aws.pem admin@ec2-18-223-241-198.us-east-2.compute.amazonaws.com"
  24. abbr ssa "ssh kevin@ec2-18-223-241-198.us-east-2.compute.amazonaws.com"
  25. # ]]] school #
  26. # abbr nej "nvim ~/Documents/emojis.md"
  27. # ]]] aliases #
  28. # login to X [[[ #
  29. {{ if eq .chezmoi.username "kevin" }}
  30. if status is-login
  31. if test -z "$DISPLAY" -a $XDG_VTNR = 1
  32. exec startx -- -keeptty
  33. end
  34. end
  35. set -x GPG_TTY (tty)
  36. {{ end }}
  37. # ]]] login to X #
  38. # universal var's [[[ #
  39. set -U fish_greeting
  40. {{ if eq .chezmoi.hostname "nzxt" }}
  41. set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
  42. set -U mfs_dir "/home/kevin/coding/mf-site"
  43. source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
  44. abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
  45. {{ end }}#]]]
  46. # system [[[
  47. set -x HASTE_SERVER https://pste.gq
  48. {{ if eq .chezmoi.hostname "nzxt" }}
  49. # set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  50. {{ end }}
  51. set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
  52. set -x GOPATH ~/go
  53. # set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
  54. set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin
  55. set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
  56. # Java [[[ #
  57. set -x GRAALVM_HOME /usr/lib/jvm/graalvm-ce-java11-21.1.0
  58. set -x GRAALVM_BIN $GRAALVM_HOME/bin
  59. set -x JAVA_HOME $GRAALVM_HOME
  60. # set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk
  61. # set -x JAVA_HOME /usr/lib/jvm/java-8-openjdk # for shared libs
  62. set -x PATH $JAVA_HOME/bin $PATH
  63. # ]]] Java #
  64. # system ]]]
  65. # space prompt[[[
  66. # set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
  67. set SPACEFISH_ADD_NEWLINE false
  68. set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  69. set SPACEFISH_DIR_PREFIX ''
  70. set SPACEFISH_DIR_TRUNC 0
  71. set SPACEFISH_DIR_TRUNC_REPO false
  72. set SPACEFISH_VI_MODE_INSERT ''
  73. set SPACEFISH_VI_MODE_NORMAL '[n] '
  74. set SPACEFISH_VI_MODE_SUFFIX ''
  75. #]]]
  76. # pass[[[
  77. set -x PASSWORD_STORE_CLIP_TIME 120
  78. set -xU XSET_RATE 90
  79. set -xU XSET_DELAY 200
  80. {{ if and (eq .chezmoi.hostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  81. xset r rate $XSET_DELAY $XSET_RATE
  82. {{ end }}#]]]
  83. # [[[ universal var's #
  84. set -xU BROWSER "firefox"
  85. # set -U BROWSER "chromium"
  86. set -xU FZF_DEFAULT_COMMAND "find ."
  87. set -x LAPTOP_IP "192.168.0.19"
  88. set -x PHONE_IP "192.168.0.101"
  89. set -x PIXEL_IP "192.168.0.18"
  90. set -x WORK_LAPTOP_IP "kmok@192.168.0.11"
  91. {{ if eq .chezmoi.hostname "nzxt" }}
  92. # set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  93. set -x JENKINS_TOKEN 114a1b2e8693b57fa6f4bce88e2deee8cc
  94. status --is-interactive; and source (pyenv init -|psub)
  95. {{ end }}
  96. set -xU MINIKUBE_IP "http://192.168.49.2"
  97. set -xU LOCAL_KOGITO_SERVICE_PORT "32000"
  98. # set -xU LOCAL_KOGITO_SERVICE_URL "$MINIKUBE_IP:$LOCAL_KOGITO_SERVICE_PORT"
  99. set -x FLASK_DEBUG 1
  100. set -x DB_NAME "covid_monitor"
  101. set -x FULLNODE_API_INFO wss://api.chain.love
  102. set -x IPAD_IMG 18
  103. source /home/kevin/coding/aws.fish
  104. set -x LIBVIRT_DEFAULT_URI qemu:///system
  105. # ]]] universal var's #
  106. # fish-specific [[[ #
  107. fish_vi_key_bindings
  108. set -x EDITOR nvim
  109. set -x VISUAL nvim
  110. set -U fish_help_browser firefox
  111. builtin cd $last_dir && ls > /dev/null
  112. # builtin cd $last_dir
  113. bind \ce edit_command_buffer
  114. bind \cr forward-word
  115. # chezmoi apply
  116. {{ if not (eq .linux_os "termux") }}
  117. ~/scripts/sync-shortcuts
  118. {{ end }}
  119. # source ~/.config/fish/key_abbr.fish > /dev/null
  120. set -U fish_fxn_dir "{{ .chezmoi.homeDir }}/linux-config/dot_config/fish/functions"
  121. # set -U fish_fxn_dir "~/.config/fish/functions"
  122. abbr ff "cd $fish_fxn_dir"
  123. for fxn in (find $fish_fxn_dir -name '*.fish')
  124. source $fxn
  125. end
  126. abbr ab "abbr"
  127. abbr abe "abbr -e"
  128. abbr hm "history merge"
  129. abbr hs "history search --show-time"
  130. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  131. abbr f. "cd .."
  132. abbr f.. "cd ../.."
  133. abbr hsm "history merge"
  134. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  135. abbr xf "fish_config"
  136. # ]]] fish-specific #
  137. # fxn abbr's [[[ #
  138. abbr ! "sudo !!"
  139. # task [[[ #
  140. abbr aan "task-anno ''"
  141. abbr ae "task-edit"
  142. abbr adl "task-delete"
  143. abbr adn "task-done"
  144. abbr adu "task-due"
  145. abbr adr "task-due-rm"
  146. abbr an "task-next"
  147. abbr anr "task-next-rm"
  148. abbr ant "task-notes"
  149. abbr apr "task-mod-pri"
  150. abbr aprl "task-mod-pri L"
  151. abbr aprm "task-mod-pri M"
  152. abbr aprn "task-mod-pri ''"
  153. abbr aprh "task-mod-pri H"
  154. abbr apj "task-mod-proj"
  155. abbr asr "task-start"
  156. abbr at "task-mod-tag"
  157. abbr atj "task-mod-tag jira"
  158. abbr aw "task-wait"
  159. abbr ax "task-context"
  160. # ]]] task #
  161. abbr ag "grep-aliases"
  162. abbr bk "buku-fzf"
  163. abbr bkf "buku-fzf fq"
  164. abbr bq "benq-brightness"
  165. abbr bn "discord-burner"
  166. abbr bun "backup nzxt"
  167. abbr bupp "backup-phone-pics"
  168. abbr ca "cad-to-us"
  169. abbr cccs "sync-alt-cal class"
  170. abbr cl "clip"
  171. abbr cli "clip-ipad"
  172. abbr cpc "copy cat"
  173. abbr cpe "copy echo"
  174. abbr cpp "copy echo (pwd)"
  175. abbr cff "create-fish-function"
  176. abbr ctr "systemctl-restart"
  177. abbr def "define"
  178. abbr drs "dump-rarity-check"
  179. abbr fd1 "fd --changed-within 1d"
  180. abbr ens "enable-site"
  181. abbr ev "evince-silent"
  182. abbr ff "fzf-cd"
  183. # abbr fbg "find-bg"
  184. # abbr fr "fzf-ranger"
  185. abbr fv "fzf-vim"
  186. abbr fvft "find-vim-filetype"
  187. abbr gif "video-to-gif"
  188. # git [[[ #
  189. abbr gcamp "git-amend-push"
  190. abbr gclg "git-clone-gitea"
  191. abbr gdf "git-diff-files"
  192. abbr gpsd "git-push-diff-name"
  193. abbr gpsi "git-push-initial"
  194. abbr gpsmt "git-push-multiple"
  195. abbr gpng "git-push-new-gitea"
  196. abbr gpngg "git-push-new-gitea gitea"
  197. abbr gremotes "git-mult-remotes"
  198. abbr grmb "git-delete-branch"
  199. abbr gro "git-replace-origin"
  200. abbr grog "git-replace-origin-gitea"
  201. abbr gsmb "git-submodule-branch"
  202. # ]]] git #
  203. abbr i "sxiv-silent"
  204. abbr lo "libreoffice-silent"
  205. abbr ma "man-vim task"
  206. abbr mat "math"
  207. abbr mi "mpv-ipad"
  208. abbr mn "man-vim"
  209. abbr mdf "mkdir-cd"
  210. abbr mps "mpv-sub"
  211. abbr mtm "maven-test-method"
  212. abbr pgr "grep-pdf"
  213. abbr pgrf "grep-pdf-file"
  214. abbr pst "pastebin"
  215. abbr qh "qalc-history"
  216. abbr qu "qalc-update"
  217. abbr re "reminder ''"
  218. abbr rf "refresh-config"
  219. abbr rl "readlink-cp"
  220. abbr rds "redshift-set"
  221. abbr rmi "rm-ipad"
  222. abbr rsi "rsync-ipad-vid"
  223. abbr scf "scp-vid fn"
  224. abbr sma "smol-add"
  225. abbr smd "smol-delete"
  226. abbr sml "smol-slist"
  227. abbr smr "smol-replace"
  228. abbr shrm "shred-rm"
  229. abbr shs "scan-history"
  230. abbr svp "server-pages"
  231. abbr ta "tmux-attach"
  232. abbr taa "tmux-attach atx"
  233. abbr taf "tmux-attach fn"
  234. abbr tam "tmux-attach misc"
  235. abbr tan "tmux-attach nft"
  236. abbr tan2 "tmux-attach nft-2"
  237. abbr tao "tmux-attach obs"
  238. abbr thes "thesaurus"
  239. # abbr usc "us-to-cad"
  240. abbr us "us-to-cad"
  241. abbr ut "unix-timestamp"
  242. abbr uzr "unzip-rm"
  243. abbr vsnp "vim-snippet"
  244. abbr wga "wget-all"
  245. abbr wag "watson-add-game"
  246. abbr waf "watson-add-game fortnite"
  247. abbr wap "watson-add-game pokemon-go"
  248. abbr wgn "wget-name"
  249. abbr xya "export-pkgs"
  250. # school [[[ #
  251. # ]]] school #
  252. # ]]] fxn abbr's #
  253. # task sync > /dev/null 2>&1
  254. source /home/kevin/.config/fish/key_abbr.fish > /dev/null
  255. cat /home/kevin/.cache/wal/sequences
  256. # ~/scripts/xmodmap-custom