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.

320 lines
8.1 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 days ago
5 days ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 days ago
4 years ago
4 years ago
1 year ago
5 days 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 /home/kevin/.linuxbrew/bin ~/.fnm/current/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. # pnpm
  65. set -gx PNPM_HOME "/home/kevin/.local/share/pnpm"
  66. if not string match -q -- $PNPM_HOME $PATH
  67. set -gx PATH "$PNPM_HOME" $PATH
  68. end
  69. # pnpm end
  70. # system ]]]
  71. # space prompt[[[
  72. # 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
  73. set SPACEFISH_ADD_NEWLINE false
  74. set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
  75. set SPACEFISH_DIR_PREFIX ''
  76. set SPACEFISH_DIR_TRUNC 0
  77. set SPACEFISH_DIR_TRUNC_REPO false
  78. set SPACEFISH_VI_MODE_INSERT ''
  79. set SPACEFISH_VI_MODE_NORMAL '[n] '
  80. set SPACEFISH_VI_MODE_SUFFIX ''
  81. #]]]
  82. # pass[[[
  83. set -x PASSWORD_STORE_CLIP_TIME 120
  84. set -xU XSET_RATE 90
  85. set -xU XSET_DELAY 200
  86. {{ if and (eq .chezmoi.hostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
  87. xset r rate $XSET_DELAY $XSET_RATE
  88. {{ end }}#]]]
  89. # [[[ universal var's #
  90. set -xU BROWSER "firefox"
  91. # set -U BROWSER "chromium"
  92. set -xU FZF_DEFAULT_COMMAND "find ."
  93. set -x LAPTOP_IP "192.168.0.19"
  94. set -x PHONE_IP "192.168.0.104"
  95. set -x PIXEL_IP "192.168.0.18"
  96. set -x WORK_LAPTOP_IP "kmok@192.168.0.11"
  97. {{ if eq .chezmoi.hostname "nzxt" }}
  98. # set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
  99. set -x JENKINS_TOKEN 114a1b2e8693b57fa6f4bce88e2deee8cc
  100. status --is-interactive; and source (pyenv init -|psub)
  101. {{ end }}
  102. set -xU MINIKUBE_IP "http://192.168.49.2"
  103. set -xU LOCAL_KOGITO_SERVICE_PORT "32000"
  104. # set -xU LOCAL_KOGITO_SERVICE_URL "$MINIKUBE_IP:$LOCAL_KOGITO_SERVICE_PORT"
  105. set -x FLASK_DEBUG 1
  106. set -x DB_NAME "covid_monitor"
  107. set -x FULLNODE_API_INFO wss://api.chain.love
  108. set -x IPAD_IMG 18
  109. #source /home/kevin/coding/aws.fish
  110. set -x LIBVIRT_DEFAULT_URI qemu:///system
  111. # ]]] universal var's #
  112. # fish-specific [[[ #
  113. fish_vi_key_bindings
  114. set -x EDITOR nvim
  115. set -x VISUAL nvim
  116. set -U fish_help_browser firefox
  117. builtin cd $last_dir && ls > /dev/null
  118. # builtin cd $last_dir
  119. bind \ce edit_command_buffer
  120. bind \cr forward-word
  121. # chezmoi apply
  122. {{ if not (eq .linux_os "termux") }}
  123. ~/scripts/sync-shortcuts
  124. {{ end }}
  125. # source ~/.config/fish/key_abbr.fish > /dev/null
  126. set -U fish_fxn_dir "{{ .chezmoi.homeDir }}/linux-config/dot_config/fish/functions"
  127. # set -U fish_fxn_dir "~/.config/fish/functions"
  128. abbr ff "cd $fish_fxn_dir"
  129. for fxn in (find $fish_fxn_dir -name '*.fish')
  130. source $fxn
  131. end
  132. abbr ab "abbr"
  133. abbr abe "abbr -e"
  134. abbr hm "history merge"
  135. abbr hs "history search --show-time"
  136. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  137. abbr f. "cd .."
  138. abbr f.. "cd ../.."
  139. abbr hsm "history merge"
  140. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  141. abbr xf "fish_config"
  142. # ]]] fish-specific #
  143. # fxn abbr's [[[ #
  144. abbr ! "sudo !!"
  145. # task [[[ #
  146. abbr aan "task-anno ''"
  147. abbr ae "task-edit"
  148. abbr adl "task-delete"
  149. abbr adn "task-done"
  150. abbr adu "task-due"
  151. abbr adr "task-due-rm"
  152. abbr an "task-next"
  153. abbr anr "task-next-rm"
  154. abbr ant "task-notes"
  155. abbr apr "task-mod-pri"
  156. abbr aprl "task-mod-pri L"
  157. abbr aprm "task-mod-pri M"
  158. abbr aprn "task-mod-pri ''"
  159. abbr aprh "task-mod-pri H"
  160. abbr apj "task-mod-proj"
  161. abbr asr "task-start"
  162. abbr at "task-mod-tag"
  163. abbr atj "task-mod-tag jira"
  164. abbr aw "task-wait"
  165. abbr ax "task-context"
  166. # ]]] task #
  167. abbr ag "grep-aliases"
  168. abbr bk "buku-fzf"
  169. abbr bkf "buku-fzf fq"
  170. abbr bq "benq-brightness"
  171. abbr bn "discord-burner"
  172. abbr bun "backup nzxt"
  173. abbr bupp "backup-phone-pics"
  174. abbr ca "cad-to-us"
  175. abbr cccs "sync-alt-cal class"
  176. abbr cl "clip"
  177. abbr cli "clip-ipad"
  178. abbr cpc "copy cat"
  179. abbr cpe "copy echo"
  180. abbr cpp "copy echo (pwd)"
  181. abbr cff "create-fish-function"
  182. abbr ctr "systemctl-restart"
  183. abbr def "define"
  184. abbr drs "dump-rarity-check"
  185. abbr fd1 "fd --changed-within 1d"
  186. abbr ens "enable-site"
  187. abbr ev "evince-silent"
  188. abbr ff "fzf-cd"
  189. # abbr fbg "find-bg"
  190. # abbr fr "fzf-ranger"
  191. abbr fv "fzf-vim"
  192. abbr fvft "find-vim-filetype"
  193. abbr gif "video-to-gif"
  194. # git [[[ #
  195. abbr gcamp "git-amend-push"
  196. abbr gclg "git-clone-gitea"
  197. abbr gdf "git-diff-files"
  198. abbr gpsd "git-push-diff-name"
  199. abbr gpsi "git-push-initial"
  200. abbr gpsmt "git-push-multiple"
  201. abbr gpng "git-push-new-gitea"
  202. abbr gpngg "git-push-new-gitea gitea"
  203. abbr gremotes "git-mult-remotes"
  204. abbr grmb "git-delete-branch"
  205. abbr gro "git-replace-origin"
  206. abbr grog "git-replace-origin-gitea"
  207. abbr gsmb "git-submodule-branch"
  208. # ]]] git #
  209. abbr i "sxiv-silent"
  210. abbr lo "libreoffice-silent"
  211. abbr ma "man-vim task"
  212. abbr mat "math"
  213. abbr mi "mpv-ipad"
  214. abbr mn "man-vim"
  215. abbr mdf "mkdir-cd"
  216. abbr mps "mpv-sub"
  217. abbr mtm "maven-test-method"
  218. abbr pgr "grep-pdf"
  219. abbr pgrf "grep-pdf-file"
  220. abbr pst "pastebin"
  221. abbr qh "qalc-history"
  222. abbr qu "qalc-update"
  223. abbr re "reminder ''"
  224. abbr rf "refresh-config"
  225. abbr rl "readlink-cp"
  226. abbr rds "redshift-set"
  227. abbr rmi "rm-ipad"
  228. abbr rsi "rsync-ipad-vid"
  229. abbr scf "scp-vid fn"
  230. abbr sma "smol-add"
  231. abbr smd "smol-delete"
  232. abbr sml "smol-slist"
  233. abbr smr "smol-replace"
  234. abbr shrm "shred-rm"
  235. abbr shs "scan-history"
  236. abbr svp "server-pages"
  237. abbr ta "tmux-attach"
  238. abbr taa "tmux-attach atx"
  239. abbr taf "tmux-attach fn"
  240. abbr tam "tmux-attach misc"
  241. abbr tan "tmux-attach nft"
  242. abbr tan2 "tmux-attach nft-2"
  243. abbr tao "tmux-attach obs"
  244. abbr thes "thesaurus"
  245. # abbr usc "us-to-cad"
  246. abbr us "us-to-cad"
  247. abbr ut "unix-timestamp"
  248. abbr uzr "unzip-rm"
  249. abbr vsnp "vim-snippet"
  250. abbr wga "wget-all"
  251. abbr wag "watson-add-game"
  252. abbr waf "watson-add-game fortnite"
  253. abbr wap "watson-add-game pokemon-go"
  254. abbr wgn "wget-name"
  255. abbr xya "export-pkgs"
  256. # school [[[ #
  257. # ]]] school #
  258. # ]]] fxn abbr's #
  259. # task sync > /dev/null 2>&1
  260. source /home/kevin/.config/fish/key_abbr.fish > /dev/null
  261. cat /home/kevin/.cache/wal/sequences
  262. # ~/scripts/xmodmap-custom