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.

306 lines
7.7 KiB

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