From 19a08978055cef35f2d8f5f3cc300be341b59925 Mon Sep 17 00:00:00 2001 From: Andrew Haynes Date: Tue, 31 Mar 2026 14:10:17 -0400 Subject: [PATCH] Major stow changes and cleanup --- .local/.DS_Store => .DS_Store | Bin 8196 -> 6148 bytes .gitmodules | 3 + .local/bin/tmux-sessionizer | 50 - .local/bin/tmux-windowizer | 20 - .local/share/.DS_Store | Bin 8196 -> 0 bytes .local/share/zinit/completions/_fast-theme | 1 - .local/share/zinit/completions/_zinit | 1 - .../share/zinit/plugins/_local---zinit/_zinit | 1 - .local/share/zinit/plugins/junegunn---fzf | 1 - ...harma-continuum---fast-syntax-highlighting | 1 - .../plugins/zsh-users---zsh-autosuggestions | 1 - .local/share/zinit/polaris/man/man1/zinit.1 | 1754 ----------------- .local/share/zinit/snippets/plugins | 1 - .local/share/zinit/zinit.git | 1 - .local/state/nvim/blink/cmp/frecency.dat | Bin 1984 -> 0 bytes .local/state/nvim/conform.log | 3 - .local/state/nvim/mason.log | 75 - .local/state/nvim/nvim-pack.log | 148 -- .local/state/nvim/nvim.log | 183 -- .local/state/nvim/shada/main.shada | Bin 74947 -> 0 bytes .../undo/%Users%andrew%dotfiles%.Brewfile | Bin 7426 -> 0 bytes ...ers%andrew%dotfiles%.config%ghostty%config | Bin 2736 -> 0 bytes ...sers%andrew%dotfiles%.config%nvim%init.lua | Bin 116330 -> 0 bytes ...%andrew%dotfiles%.config%nvim%lsp%deno.lua | Bin 6163 -> 0 bytes ...sers%andrew%dotfiles%.config%starship.toml | Bin 20098 -> 0 bytes ...ers%andrew%dotfiles%.config%tmux%tmux.conf | Bin 32425 -> 0 bytes .../%Users%andrew%dotfiles%.stow-local-ignore | Bin 5743 -> 0 bytes .../nvim/undo/%Users%andrew%dotfiles%.zshrc | Bin 1202 -> 0 bytes .local/state/nvim/undo/%Users%andrew%mount.sh | Bin 2851 -> 0 bytes ...%Projects%C%image_processor%CMakeLists.txt | Bin 14957 -> 0 bytes ...Projects%C%image_rasterizer%CMakeLists.txt | Bin 20414 -> 0 bytes ...drew%personal%Projects%C%sudoku%src%main.c | Bin 689 -> 0 bytes ...drew%personal%Projects%C%vector%src%main.c | Bin 615 -> 0 bytes ...rsonal%Projects%Javascript%test%.gitignore | Bin 525 -> 0 bytes ...%personal%Projects%Javascript%test%main.js | Bin 1006 -> 0 bytes ...rsonal%Projects%Javascript%testing%main.js | Bin 39623 -> 0 bytes ...ojects%Lua%Polydev%lua%Polydev%configs.lua | Bin 5878 -> 0 bytes ...ects%Lua%Polydev%lua%Polydev%languages.lua | Bin 25159 -> 0 bytes ...ects%Lua%Polydev%lua%Polydev%templates.lua | Bin 27109 -> 0 bytes ...Projects%Lua%Polydev%lua%Polydev%utils.lua | Bin 5354 -> 0 bytes .stow-local-ignore | 2 + .Brewfile => brew/.Brewfile | 7 +- .../.config}/ghostty/.DS_Store | Bin {.config => ghostty/.config}/ghostty/config | 0 .../.config}/ghostty/themes/rose-pine-default | 0 .../.config}/ghostty/themes/tokyonight-moon | 0 macutil.sh | 10 + {.config => nvim/.config}/nvim/.DS_Store | Bin {.config => nvim/.config}/nvim/init.lua | 14 +- {.config => nvim/.config}/nvim/init.lua-test | 0 {.config => nvim/.config}/nvim/lsp/clangd.lua | 0 {.config => nvim/.config}/nvim/lsp/deno.lua | 0 {.config => nvim/.config}/nvim/lsp/lua_ls.lua | 0 .../.config}/nvim/lsp/rust-analyzer.lua | 0 .../.config}/nvim/nvim-pack-lock.json | 3 +- {.config => nvim/.config}/nvim/stylua.toml | 0 ssh/.ssh/config | 16 + {.config => starship/.config}/starship.toml | 0 {.config => tmux/.config}/tmux/.DS_Store | Bin .../.config}/tmux/plugins/.DS_Store | Bin {.config => tmux/.config}/tmux/plugins/tpm | 0 .../.config}/tmux/plugins/vim-tmux-navigator | 0 {.config => tmux/.config}/tmux/tmux.conf | 0 .zshrc => zshrc/.zshrc | 2 +- 64 files changed, 46 insertions(+), 2252 deletions(-) rename .local/.DS_Store => .DS_Store (57%) create mode 100644 .gitmodules delete mode 100755 .local/bin/tmux-sessionizer delete mode 100755 .local/bin/tmux-windowizer delete mode 100644 .local/share/.DS_Store delete mode 120000 .local/share/zinit/completions/_fast-theme delete mode 120000 .local/share/zinit/completions/_zinit delete mode 120000 .local/share/zinit/plugins/_local---zinit/_zinit delete mode 160000 .local/share/zinit/plugins/junegunn---fzf delete mode 160000 .local/share/zinit/plugins/zdharma-continuum---fast-syntax-highlighting delete mode 160000 .local/share/zinit/plugins/zsh-users---zsh-autosuggestions delete mode 100644 .local/share/zinit/polaris/man/man1/zinit.1 delete mode 120000 .local/share/zinit/snippets/plugins delete mode 160000 .local/share/zinit/zinit.git delete mode 100644 .local/state/nvim/blink/cmp/frecency.dat delete mode 100644 .local/state/nvim/conform.log delete mode 100644 .local/state/nvim/mason.log delete mode 100644 .local/state/nvim/nvim-pack.log delete mode 100644 .local/state/nvim/nvim.log delete mode 100644 .local/state/nvim/shada/main.shada delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.Brewfile delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.config%ghostty%config delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.config%nvim%init.lua delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.config%nvim%lsp%deno.lua delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.config%starship.toml delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.config%tmux%tmux.conf delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.stow-local-ignore delete mode 100644 .local/state/nvim/undo/%Users%andrew%dotfiles%.zshrc delete mode 100644 .local/state/nvim/undo/%Users%andrew%mount.sh delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%C%image_processor%CMakeLists.txt delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%C%image_rasterizer%CMakeLists.txt delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%C%sudoku%src%main.c delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%C%vector%src%main.c delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%Javascript%test%.gitignore delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%Javascript%test%main.js delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%Javascript%testing%main.js delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%Lua%Polydev%lua%Polydev%configs.lua delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%Lua%Polydev%lua%Polydev%languages.lua delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%Lua%Polydev%lua%Polydev%templates.lua delete mode 100644 .local/state/nvim/undo/%Users%andrew%personal%Projects%Lua%Polydev%lua%Polydev%utils.lua rename .Brewfile => brew/.Brewfile (75%) rename {.config => ghostty/.config}/ghostty/.DS_Store (100%) rename {.config => ghostty/.config}/ghostty/config (100%) rename {.config => ghostty/.config}/ghostty/themes/rose-pine-default (100%) rename {.config => ghostty/.config}/ghostty/themes/tokyonight-moon (100%) rename {.config => nvim/.config}/nvim/.DS_Store (100%) rename {.config => nvim/.config}/nvim/init.lua (96%) rename {.config => nvim/.config}/nvim/init.lua-test (100%) rename {.config => nvim/.config}/nvim/lsp/clangd.lua (100%) rename {.config => nvim/.config}/nvim/lsp/deno.lua (100%) rename {.config => nvim/.config}/nvim/lsp/lua_ls.lua (100%) rename {.config => nvim/.config}/nvim/lsp/rust-analyzer.lua (100%) rename {.config => nvim/.config}/nvim/nvim-pack-lock.json (97%) rename {.config => nvim/.config}/nvim/stylua.toml (100%) create mode 100644 ssh/.ssh/config rename {.config => starship/.config}/starship.toml (100%) rename {.config => tmux/.config}/tmux/.DS_Store (100%) rename {.config => tmux/.config}/tmux/plugins/.DS_Store (100%) rename {.config => tmux/.config}/tmux/plugins/tpm (100%) rename {.config => tmux/.config}/tmux/plugins/vim-tmux-navigator (100%) rename {.config => tmux/.config}/tmux/tmux.conf (100%) rename .zshrc => zshrc/.zshrc (93%) diff --git a/.local/.DS_Store b/.DS_Store similarity index 57% rename from .local/.DS_Store rename to .DS_Store index ab3bdb225e6ff05f6048424c39a81dc1ef93674c..7e208f3a028fc3a415a8ea9374be7e560fe76808 100644 GIT binary patch literal 6148 zcmeHKJxc>Y5S`USqZURhD>*DI11ap!aOo_>^b&KyM7Vf?Xn$ZS+W15K0TS%upRv{= zjq_!)F&D5B(HYo%cl%~`W*^+{EdaRMb-M~s27nSa!eAY{0wbQrk;*Ra>F-|tEd9zV@q#QS+GBVOzZ=1ozD z1kND!b8oGk&;~fe`}yA=9&fgvSc5M<(;61}_;qaGHb2)mfB|&<8i+un^)ct?-+y~f zHYLBuPjeUXeqNc{`hTVXp4nuj4MFQo0aL&fm?%K|Lx_zqQp^Q;>%fk$0Eht&v*9!S zQcz5&7%Aq0$e=k1MU+sdR}3fNI3B8Bq?ijzI5@q0IL++zhT=Fo&L6TnxJb}?Q@|9M zRbW|O%XI$N7vKM9gY3-|Fa`dU0xpOfaSfNGXY1VJ=&TK~HL;PAUoOZY*y(Z14|Ejo bU}HlrqzA-EF&D%UH2V=?8LTq}epG=EvGInE literal 8196 zcmeHM%TLrm82^Tcc15rtC`L4mdoh9N`aokev8)(FJU}Qx2m8dHQ zQFjL-)6s9M__{=y4n*{f?WmrKx}gwt^&plA2VzUqQZt|#Xl8)l-CMzf5a?L6>Hc0s z&yjDUh%^-yRgO7jR;|gVc0Ak2ud>lmb^kZ~H=lNXeeiN5>-B%(tu1C-E%3(MA%R73 zA%@_Gkv&0gc4V1IZzZXzF+BBZQJAEK!dueP+Sa~pyRqHqFs?d_Y{g04bSWvi@f?4e zVl46+y6a7c!Ai;Oy})SdhBSypLg)t=GJhqcK3gfWCF&<4*O3k*XXHv||LW?AGs8pH zaG|g^WUZb#UKp}Yo;bC(mNWYDN6$`{Zbntg?(xati%Y%8pi@4t%loKhX5=U3$iorx z@QgVuFRO`?SB;5&FwMqPb2~bAc6RMDyL)zb_jdR7_3hc)zprQiK*`+gx#gRcm`~vX zi&$KYmV%PGD?uX0%8X9L!7>sslLog_C%lWUo*xn>1OM8FY3fc5V|q6XqR~rn5YV|w z9Qxx63rUd9Wb|3yTRCP?G{KTE4H=!C7rm!Jb&M`B?2(UPyvAM0bPy+qO*u2OZXCO` z5)|)Tja)B?#%YnIDXY$eI14^<(WO&!%OS1g&wr8p=JNJoshN}nevIQM?DH@o6Kzgu5%nfxl-San-RWLMtcK{1R> z{<0I(h|vn#34Q?Q$~B>KA$DOzwF?V}i6Pu)DYO;VC87t5-v0#+T4)CT8UwAe=YD?w zzxeat|Nq+fbjO+j&A{(xfV7P|qx`rpx8~*!`7Uo^y^fU^9#@wrQc!F<2;lSjABLz~ Y7|L^Og>{K&!J-cWf(9)#1Aml(@3%iCC;$Ke diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8b60c27 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "tmux/.config/tmux/plugins/tpm"] + path = tmux/.config/tmux/plugins/tpm + url = https://github.com/tmux-plugins/tpm diff --git a/.local/bin/tmux-sessionizer b/.local/bin/tmux-sessionizer deleted file mode 100755 index 5c65a45..0000000 --- a/.local/bin/tmux-sessionizer +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - - -# 1. Get active tmux sessions -sessions=$(tmux list-sessions -F "#S" 2>/dev/null) - -# 2. Get directories (Optimized find) -# Adjust -maxdepth to 3 or 4 if you want deeper subfolders -# dirs=$(fd . ~ ~/personal ~/personal/Projects ~/.config --min-depth 1 --max-depth 3 --type d) -dirs=$(find ~ ~/personal ~/personal/Projects ~/.config \ - -mindepth 1 -maxdepth 2 \ - \( -name ".git" -o -name "node_modules" -o -name ".cache" -o -name "Library" \) -prune \ - -o -type d -print 2>/dev/null) - -# 3. Combine them and pipe to fzf -# We use printf to ensure they appear as a clean list - -selected=$(printf "$sessions\n$dirs" | fzf \ - --layout=reverse \ - --border=rounded \ - --margin=1 \ - --padding=1 \ - --height=100% \ - --prompt="󱇗 " \ - --color="bg+:#292e42,bg:#1b1d2b,spinner:#bb9af7,hl:#7aa2f7" \ - --color="fg:#c0caf5,header:#7dcfff,info:#bb9af7,pointer:#7dcfff" \ - --color="marker:#9ece6a,fg+:#c0caf5,prompt:#bb9af7,hl+:#7aa2f7" \ - --preview '[[ -d {} ]] && ls -p --color=always {} | head -10 || tmux list-windows -t {} 2>/dev/null' \ - --preview-window="top:35%:border-bottom") -# selected=$(printf "$sessions\n$dirs" | fzf \ -# --height=100% --layout=reverse --border \ -# --prompt="󱇗 Switch to: " --pointer="󰁔" \ -# --color="bg+:#292e42,bg:#1b1d2b,spinner:#bb9af7,hl:#7aa2f7" \ -# --color="fg:#c0caf5,header:#7dcfff,info:#bb9af7,pointer:#7dcfff" \ -# --color="marker:#9ece6a,fg+:#c0caf5,prompt:#bb9af7,hl+:#7aa2f7" \ -# --preview '[[ -d {} ]] && ls -p --color=always {} || tmux list-windows -t {} 2>/dev/null' \ -# --preview-window=right:60%) -# -session_name=$(basename "$selected" | tr . _) - -if ! tmux has-session -t "$session_name" 2>/dev/null; then - tmux new-session -d -s "$session_name" -c "$selected" -fi - -if [[ -z $TMUX ]]; then - exec tmux attach -t "$session_name" -else - tmux switch-client -t "$session_name" -fi - diff --git a/.local/bin/tmux-windowizer b/.local/bin/tmux-windowizer deleted file mode 100755 index 5b6a309..0000000 --- a/.local/bin/tmux-windowizer +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -selected="${1:-$(find ~/ ~/.config/*/ ~/Projects/*/ ~/personal/*/ ~/personal -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort -u | fzf)}" -[[ -z $selected ]] && exit 0 - -# Create a new window in the current tmux session -tmux new-window -c "$selected" - -# Hydrate with sessionizer if it exists -for file in "$selected/.tmux-sessionizer" "$HOME/.tmux-sessionizer"; do - [[ -f $file ]] && tmux send-keys -t "$(tmux display-message -p '#S')" "source $file" C-m && break -done - -# Attach or switch to the tmux session -if [[ -z $TMUX ]]; then - exec tmux attach-session -else - tmux switch-client -fi - diff --git a/.local/share/.DS_Store b/.local/share/.DS_Store deleted file mode 100644 index 8dad1a2033aa81bb9da1127ea684c2ee1a804ae6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeHMYitxn9G~B|z#d)b7K<&*6;7(4aA~iUA|UAX!J`Fi!}SeX?`{{mvfZt>dsl=s zmPj-rpM1q{7>$Yg0gaEuM8!vZCC2y&A&Q##h|zCqLZW<8|1-PSv;|^F48gdQ%=~Bm zkC~m{{eL?*cZ@N#1jRGvwp&g%V>y}gd_zTu zK!`wyK!`wyK#0JVfdHM^yvP?h_kC;Fh6scR{4WvU?}r#wE|Y;HqReVwhvNo%8qn5Yh~yOx%(8gwXY$Sbw);c*s5ssiy2n8(CWib z(o}@uOc932+%jdJ*4@+FrwsI)S;tP92aO@M+$Aj9Y1oxB3WPyl*0J&2q>*|NAZ>B`+~&atd6$2C3Eu?PA+Z;g3(4Z z(o_rhYMrBe8n@TTxg=|o3BEDLA}8ioMX$MTW&N7noV9nX!y+J3V4lARdW`sOm+U)}POqcjZm*ZnajHg|=pi zrtHz_L3TPipG{X^k$wMVOEhgax3uOAYV{ys`3g{B@evDq3H`-<`TWP;RJHw0`;&M`$ZV|JQ-$9`hJv2*NC01`@|U?HkdjYU|7dNg1)8nF@E(2fqI(2qgv#vT~B6Bb5b zV+`ZC2NO7qqj(69;88q=<9G(o;yJv8cknLW!~6IIXYdui#*g?Nf8d-XNs2U2nlDvJ z)siMHmg=N>X`R$8bx563m;dxqk%NPiyAd5JO=2q9+(PhHkxpEgPSLH~+B=jTS3I4* zobMB8;nh_!&Z>2rnkN&`&)8y;PECE0@6%W!@?GS^j9fiMG+P|4QI-~2IFp?{L=@wI z%z3HK@x7NR*UCf`b(TL|q1+%7Mbz2;FdnUwiIl1&hDt-UF+$W+OZ;IxdSgUZ;SV+_ z8zV$QwbUQhD9K1fWnvI*jc%5SNUHpAXZUCA4EvV-%+9iNn2j>1Sc>bBz*;1+1zRbn zw__)I(T4%bY@XM9F$@#?;UQ1CeEFOJ|o+>Zw+zaORy=lT5vp2Sml8Yl2PUcifZ z4X@)Q-o)FK@gLz7zQOnSVMZSBoSw%xJ3Ws_oVK>$bd+0uIeoV7@ei73dg%Y)F*-cu z;HmkPFF1uMg;dVA9D5&Wi`?QKmr_c6=W2fc-+b}k|1V|A&^JUNMBqP$07~0ZZTzeL z#a<-*t{tO#2UT9U--Itk2sPY=>&11P # Load with reporting/investigating. -zinit light # Load without reporting/investigating. -\f[R] -.fi -.PP -If you want to source local or remote files (using direct URL), you can -do so with \f[C]snippet\f[R]. -.IP -.nf -\f[C] -zinit snippet -\f[R] -.fi -.PP -Such lines should be added to \f[C].zshrc\f[R]. -Snippets are cached locally, use \f[C]-f\f[R] option to download a fresh -version of a snippet, or \f[C]zinit update {URL}\f[R]. -Can also use \f[C]zinit update --all\f[R] to update all snippets (and -plugins). -.PP -\f[B]Example\f[R] -.IP -.nf -\f[C] -# Plugin history-search-multi-word loaded with investigating. -zinit load zdharma-continuum/history-search-multi-word - -# Two regular plugins loaded without investigating. -zinit light zsh-users/zsh-autosuggestions -zinit light zdharma-continuum/fast-syntax-highlighting - -# Snippet -zinit snippet https://gist.githubusercontent.com/hightemp/5071909/raw/ -\f[R] -.fi -.PP -\f[B]Prompt(Theme) Example\f[R] -.PP -This is powerlevel10k (https://github.com/romkatv/powerlevel10k), -pure (https://github.com/sindresorhus/pure), -starship (https://github.com/starship/starship) sample: -.IP -.nf -\f[C] -# Load powerlevel10k theme -zinit ice depth\[dq]1\[dq] # git clone depth -zinit light romkatv/powerlevel10k - -# Load pure theme -zinit ice pick\[dq]async.zsh\[dq] src\[dq]pure.zsh\[dq] # with zsh-async library that\[aq]s bundled with it. -zinit light sindresorhus/pure - -# Load starship theme -zinit ice as\[dq]command\[dq] from\[dq]gh-r\[dq] \[rs] # \[ga]starship\[ga] binary as command, from github release - atclone\[dq]./starship init zsh > init.zsh; ./starship completions zsh > _starship\[dq] \[rs] # starship setup at clone(create init.zsh, completion) - atpull\[dq]%atclone\[dq] src\[dq]init.zsh\[dq] # pull behavior same as clone, source init.zsh -zinit light starship/starship -\f[R] -.fi -.SS Upgrade Zinit and plugins -.PP -Zinit can be updated to \f[C]self-update\f[R] and plugins to -\f[C]update\f[R]. -.IP -.nf -\f[C] -# Self update -zinit self-update - -# Plugin update -zinit update - -# Plugin parallel update -zinit update --parallel - -# Increase the number of jobs in a concurrent-set to 40 -zinit update --parallel 40 -\f[R] -.fi -.SS Turbo and lucid -.PP -Turbo and lucid are the most used options. -Turbo Mode -.PP -Turbo mode is the key to performance. -It can be loaded asynchronously, which makes a huge difference when the -amount of plugins increases. -.PP -Usually used as \f[C]zinit ice wait\[dq]\[dq]\f[R], let\[cq]s -use the previous example: -.IP -.nf -\f[C] -zinit ice wait # wait is same wait\[dq]0\[dq] -zinit load zdharma-continuum/history-search-multi-word - -zinit ice wait\[dq]2\[dq] # load after 2 seconds -zinit load zdharma-continuum/history-search-multi-word - -zinit ice wait # also be used in \[ga]light\[ga] and \[ga]snippet\[ga] -zinit snippet https://gist.githubusercontent.com/hightemp/5071909/raw/ -\f[R] -.fi -Lucid -.PP -Turbo mode is verbose, so you need an option for quiet. -.PP -You can use with \f[C]lucid\f[R]: -.IP -.nf -\f[C] -zinit ice wait lucid -zinit load zdharma-continuum/history-search-multi-word -\f[R] -.fi -.PP -\f[B]\f[BI]F&A:\f[B]\f[R] What is \f[C]ice\f[R]? -.PP -\f[C]ice\f[R] is zinit\[cq]s option command. -The option melts like ice and is used only once. -(more: Ice Modifiers) -.SS Migration -Migration from Oh-My-ZSH -.PP -\f[B]Basic\f[R] -.IP -.nf -\f[C] -zinit snippet # Raw Syntax with URL -zinit snippet OMZ:: # Shorthand OMZ/ (https://github.com/ohmyzsh/ohmyzsh/raw/master/) -zinit snippet OMZL:: # Shorthand OMZ/lib/ -zinit snippet OMZT:: # Shorthand OMZ/themes/ -zinit snippet OMZP:: # Shorthand OMZ/plugins/ -\f[R] -.fi -.PP -\f[B]Library\f[R] -.PP -Importing the -clipboard (https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/clipboard.zsh) -and -termsupport (https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/termsupport.zsh) -Oh-My-Zsh Library Sample: -.IP -.nf -\f[C] -# Raw Syntax -zinit snippet https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/clipboard.zsh -zinit snippet https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/termsupport.zsh - -# OMZ Shorthand Syntax -zinit snippet OMZ::lib/clipboard.zsh -zinit snippet OMZ::lib/termsupport.zsh - -# OMZL Shorthand Syntax -zinit snippet OMZL::clipboard.zsh -zinit snippet OMZL::termsupport.zsh -\f[R] -.fi -.PP -\f[B]Theme\f[R] -.PP -To use \f[B]themes\f[R] created for Oh My Zsh you might want to first -source the \f[C]git\f[R] library there. -.PP -Then you can use the themes as snippets -(\f[C]zinit snippet \f[R]). -Some themes require not only Oh My Zsh\[cq]s Git \f[B]library\f[R], but -also Git \f[B]plugin\f[R] (error about \f[C]current_branch\f[R] may -appear). -Load this Git-plugin as single-file snippet directly from OMZ. -.PP -Most themes require \f[C]promptsubst\f[R] option -(\f[C]setopt promptsubst\f[R] in \f[C]zshrc\f[R]), if it isn\[cq]t set, -then prompt will appear as something like: -\f[C]... $(build_prompt) ...\f[R]. -.PP -You might want to suppress completions provided by the git plugin by -issuing \f[C]zinit cdclear -q\f[R] (\f[C]-q\f[R] is for quiet) -\[en]\ see below \f[B]Ignoring Compdefs\f[R]. -.PP -To summarize: -.IP -.nf -\f[C] -## Oh My Zsh Setting -ZSH_THEME=\[dq]robbyrussell\[dq] - -## Zinit Setting -# Must Load OMZ Git library -zinit snippet OMZL::git.zsh - -# Load Git plugin from OMZ -zinit snippet OMZP::git -zinit cdclear -q # <- forget completions provided up to this moment - -setopt promptsubst - -# Load Prompt -zinit snippet OMZT::robbyrussell -\f[R] -.fi -.PP -External Theme Sample: -NicoSantangelo/Alpharized (https://github.com/nicosantangelo/Alpharized) -.IP -.nf -\f[C] -## Oh My Zsh Setting -ZSH_THEME=\[dq]alpharized\[dq] - -## Zinit Setting -# Must Load OMZ Git library -zinit snippet OMZL::git.zsh - -# Load Git plugin from OMZ -zinit snippet OMZP::git -zinit cdclear -q # <- forget completions provided up to this moment - -setopt promptsubst - -# Load Prompt -zinit light NicoSantangelo/Alpharized -\f[R] -.fi -.PP -\f[B]\f[BI]F&A:\f[B]\f[R] Error occurs when loading OMZ\[cq]s theme. -.PP -If the \f[C]git\f[R] library will not be loaded, then similar to -following errors will be appearing: -.IP -.nf -\f[C] -\&........:1: command not found: git_prompt_status -\&........:1: command not found: git_prompt_short_sha -\f[R] -.fi -.PP -\f[B]Plugin\f[R] -.PP -If it consists of a single file, you can just load it. -.IP -.nf -\f[C] -## Oh-My-Zsh Setting -plugins=( - git - dotenv - rake - rbenv - ruby -) - -## Zinit Setting -zinit snippet OMZP::git -zinit snippet OMZP::dotenv -zinit snippet OMZP::rake -zinit snippet OMZP::rbenv -zinit snippet OMZP::ruby -\f[R] -.fi -.PP -Use \f[C]zinit ice svn\f[R] if multiple files require an entire -subdirectory. -Like -gitfast (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/gitfast), -osx (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/osx): -.IP -.nf -\f[C] -zinit ice svn -zinit snippet OMZP::gitfast - -zinit ice svn -zinit snippet OMZP::osx -\f[R] -.fi -.PP -Use \f[C]zinit ice as\[dq]completion\[dq]\f[R] to directly add single -file completion snippets. -Like -docker (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker), -fd (https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/fd): -.IP -.nf -\f[C] -zinit ice as\[dq]completion\[dq] -zinit snippet OMZP::docker/_docker - -zinit ice as\[dq]completion\[dq] -zinit snippet OMZP::fd/_fd -\f[R] -.fi -.PP -You can see an extended explanation of Oh-My-Zsh setup in the -Wiki (https://zdharma-continuum.github.io/zinit/wiki/Example-Oh-My-Zsh-setup/) -Migration from Prezto -.PP -\f[B]Basic\f[R] -.IP -.nf -\f[C] -zinit snippet # Raw Syntax with URL -zinit snippet PZT:: # Shorthand PZT/ (https://github.com/sorin-ionescu/prezto/tree/master/) -zinit snippet PZTM:: # Shorthand PZT/modules/ -\f[R] -.fi -.PP -\f[B]Modules\f[R] -.PP -Importing the -environment (https://github.com/sorin-ionescu/prezto/tree/master/modules/environment) -and -terminal (https://github.com/sorin-ionescu/prezto/tree/master/modules/terminal) -Prezto Modules Sample: -.IP -.nf -\f[C] -## Prezto Setting -zstyle \[aq]:prezto:load\[aq] pmodule \[aq]environment\[aq] \[aq]terminal\[aq] - -## Zinit Setting -# Raw Syntax -zinit snippet https://github.com/sorin-ionescu/prezto/blob/master/modules/environment/init.zsh -zinit snippet https://github.com/sorin-ionescu/prezto/blob/master/modules/terminal/init.zsh - -# PZT Shorthand Syntax -zinit snippet PZT::modules/environment -zinit snippet PZT::modules/terminal - -# PZTM Shorthand Syntax -zinit snippet PZTM::environment -zinit snippet PZTM::terminal -\f[R] -.fi -.PP -Use \f[C]zinit ice svn\f[R] if multiple files require an entire -subdirectory. -Like -docker (https://github.com/sorin-ionescu/prezto/tree/master/modules/docker), -git (https://github.com/sorin-ionescu/prezto/tree/master/modules/git): -.IP -.nf -\f[C] -zinit ice svn -zinit snippet PZTM::docker - -zinit ice svn -zinit snippet PZTM::git -\f[R] -.fi -.PP -Use \f[C]zinit ice as\[dq]null\[dq]\f[R] if don\[cq]t exist -\f[C]*.plugin.zsh\f[R], \f[C]init.zsh\f[R], \f[C]*.zsh-theme*\f[R] files -in module. -Like -archive (https://github.com/sorin-ionescu/prezto/tree/master/modules/archive): -.IP -.nf -\f[C] -zinit ice svn as\[dq]null\[dq] -zinit snippet PZTM::archive -\f[R] -.fi -.PP -Use \f[C]zinit ice atclone\[dq]git clone \[dq]\f[R] if -module have external module. -Like -completion (https://github.com/sorin-ionescu/prezto/tree/master/modules/completion): -.IP -.nf -\f[C] -zplugin ice svn blockf \[rs] # use blockf to prevent any unnecessary additions to fpath, as zinit manages fpath - atclone\[dq]git clone --recursive https://github.com/zsh-users/zsh-completions.git external\[dq] -zplugin snippet PZTM::completion -\f[R] -.fi -.PP -\f[B]\f[BI]F&A:\f[B]\f[R] What is \f[C]zstyle\f[R]? -.PP -Read -zstyle (http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fzutil-Module) -doc (more: What does \f[C]zstyle\f[R] -do? (https://unix.stackexchange.com/questions/214657/what-does-zstyle-do)). -Migration from Zgen -.PP -\f[B]Oh My Zsh\f[R] -.PP -More reference: check \f[B]Migration from Oh-My-ZSH\f[R] -.IP -.nf -\f[C] -# Load ohmyzsh base -zgen oh-my-zsh -zinit snippet OMZL:: - -# Load ohmyzsh plugins -zgen oh-my-zsh -zinit snippet OMZ:: -\f[R] -.fi -.PP -\f[B]Prezto\f[R] -.PP -More reference: check \f[B]Migration from Prezto\f[R] -.IP -.nf -\f[C] -# Load Prezto -zgen prezto -zinit snippet PZTM:: # environment terminal editor history directory spectrum utility completion prompt - -# Load prezto plugins -zgen prezto -zinit snippet PZTM:: - -# Load a repo as Prezto plugins -zgen pmodule -zinit ice ver\[dq]\[dq] -zinit load - -# Set prezto options -zgen prezto