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.

311 lines
7.8 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
7 months 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
3 years ago
3 years ago
1 year ago
5 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
5 years ago
9 months ago
6 years ago
3 years ago
5 years ago
6 years ago
6 years ago
6 years ago
5 years ago
6 years ago
5 years ago
5 years ago
6 years ago
1 year ago
5 years ago
9 months ago
6 years ago
5 years ago
1 year ago
5 years ago
5 years ago
4 years ago
5 years ago
6 years ago
5 years ago
8 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. # ]]] universal var's #
  105. # fish-specific [[[ #
  106. fish_vi_key_bindings
  107. set -x EDITOR nvim
  108. set -x VISUAL nvim
  109. set -U fish_help_browser firefox
  110. builtin cd $last_dir && ls > /dev/null
  111. # builtin cd $last_dir
  112. bind \ce edit_command_buffer
  113. bind \cr forward-word
  114. # chezmoi apply
  115. {{ if not (eq .linux_os "termux") }}
  116. ~/scripts/sync-shortcuts
  117. {{ end }}
  118. # source ~/.config/fish/key_abbr.fish > /dev/null
  119. set -U fish_fxn_dir "{{ .chezmoi.homeDir }}/linux-config/dot_config/fish/functions"
  120. # set -U fish_fxn_dir "~/.config/fish/functions"
  121. abbr ff "cd $fish_fxn_dir"
  122. for fxn in (find $fish_fxn_dir -name '*.fish')
  123. source $fxn
  124. end
  125. abbr ab "abbr"
  126. abbr abe "abbr -e"
  127. abbr hm "history merge"
  128. abbr hs "history search --show-time"
  129. # abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
  130. abbr f. "cd .."
  131. abbr f.. "cd ../.."
  132. abbr hsm "history merge"
  133. abbr nxv "$EDITOR ~/.config/fish/fish_variables"
  134. abbr xf "fish_config"
  135. # ]]] fish-specific #
  136. # fxn abbr's [[[ #
  137. abbr ! "sudo !!"
  138. # task [[[ #
  139. abbr aan "task-anno ''"
  140. abbr ae "task-edit"
  141. abbr adl "task-delete"
  142. abbr adn "task-done"
  143. abbr adu "task-due"
  144. abbr adr "task-due-rm"
  145. abbr an "task-next"
  146. abbr anr "task-next-rm"
  147. abbr ant "task-notes"
  148. abbr apr "task-mod-pri"
  149. abbr aprl "task-mod-pri L"
  150. abbr aprm "task-mod-pri M"
  151. abbr aprn "task-mod-pri ''"
  152. abbr aprh "task-mod-pri H"
  153. abbr apj "task-mod-proj"
  154. abbr asr "task-start"
  155. abbr at "task-mod-tag"
  156. abbr atj "task-mod-tag jira"
  157. abbr aw "task-wait"
  158. abbr ax "task-context"
  159. # ]]] task #
  160. abbr ag "grep-aliases"
  161. abbr bk "buku-fzf"
  162. abbr bkf "buku-fzf fq"
  163. abbr bq "benq-brightness"
  164. abbr bn "discord-burner"
  165. abbr bun "backup nzxt"
  166. abbr bupp "backup-phone-pics"
  167. abbr ca "cad-to-us"
  168. abbr cccs "sync-alt-cal class"
  169. abbr cl "clip"
  170. abbr cli "clip-ipad"
  171. abbr cpc "copy cat"
  172. abbr cpe "copy echo"
  173. abbr cpp "copy echo (pwd)"
  174. abbr cff "create-fish-function"
  175. abbr ctr "systemctl-restart"
  176. abbr def "define"
  177. abbr drs "dump-rarity-check"
  178. abbr fd1 "fd --changed-within 1d"
  179. abbr ens "enable-site"
  180. abbr ev "evince-silent"
  181. abbr ff "fzf-cd"
  182. # abbr fbg "find-bg"
  183. # abbr fr "fzf-ranger"
  184. abbr fv "fzf-vim"
  185. abbr fvft "find-vim-filetype"
  186. abbr gif "video-to-gif"
  187. # git [[[ #
  188. abbr gcamp "git-amend-push"
  189. abbr gclg "git-clone-gitea"
  190. abbr gdf "git-diff-files"
  191. abbr gpsd "git-push-diff-name"
  192. abbr gpsi "git-push-initial"
  193. abbr gpsmt "git-push-multiple"
  194. abbr gpng "git-push-new-gitea"
  195. abbr gpngg "git-push-new-gitea gitea"
  196. abbr gremotes "git-mult-remotes"
  197. abbr grmb "git-delete-branch"
  198. abbr gro "git-replace-origin"
  199. abbr grog "git-replace-origin-gitea"
  200. abbr gsmb "git-submodule-branch"
  201. # ]]] git #
  202. abbr i "sxiv-silent"
  203. abbr lo "libreoffice-silent"
  204. abbr ma "man-vim task"
  205. abbr mat "math"
  206. abbr mi "mpv-ipad"
  207. abbr mn "man-vim"
  208. abbr mdf "mkdir-cd"
  209. abbr mps "mpv-sub"
  210. abbr mtm "maven-test-method"
  211. abbr pgr "grep-pdf"
  212. abbr pgrf "grep-pdf-file"
  213. abbr pst "pastebin"
  214. abbr qh "qalc-history"
  215. abbr qu "qalc-update"
  216. abbr re "reminder ''"
  217. abbr rf "refresh-config"
  218. abbr rl "readlink-cp"
  219. abbr rds "redshift-set"
  220. abbr rmi "rm-ipad"
  221. abbr rsi "rsync-ipad-vid"
  222. abbr scf "scp-vid fn"
  223. abbr sma "smol-add"
  224. abbr smd "smol-delete"
  225. abbr sml "smol-slist"
  226. abbr smr "smol-replace"
  227. abbr shrm "shred-rm"
  228. abbr shs "scan-history"
  229. abbr svp "server-pages"
  230. abbr ta "tmux-attach"
  231. abbr taa "tmux-attach atx"
  232. abbr taf "tmux-attach fn"
  233. abbr tam "tmux-attach misc"
  234. abbr tan "tmux-attach nft"
  235. abbr tan2 "tmux-attach nft-2"
  236. abbr tao "tmux-attach obs"
  237. abbr thes "thesaurus"
  238. # abbr usc "us-to-cad"
  239. abbr us "us-to-cad"
  240. abbr ut "unix-timestamp"
  241. abbr uzr "unzip-rm"
  242. abbr vsnp "vim-snippet"
  243. abbr wga "wget-all"
  244. abbr wag "watson-add-game"
  245. abbr waf "watson-add-game fortnite"
  246. abbr wap "watson-add-game pokemon-go"
  247. abbr wgn "wget-name"
  248. abbr xya "export-pkgs"
  249. # school [[[ #
  250. # ]]] school #
  251. # ]]] fxn abbr's #
  252. # task sync > /dev/null 2>&1
  253. source /home/kevin/.config/fish/key_abbr.fish > /dev/null
  254. wal -r
  255. # ~/scripts/xmodmap-custom