[{"data":1,"prerenderedAt":663},["ShallowReactive",2],{"page:/pt/posts/2025/omarchy-first-steps":3,"authors:all":647,"surroundings:/pt/posts/2025/omarchy-first-steps":658,"search-api":-1},{"id":4,"title":5,"alternates":6,"author":7,"body":8,"categories":630,"cover":6,"date":634,"description":635,"draft":636,"extension":637,"language":6,"layout":6,"listed":183,"meta":638,"navigation":183,"nocomments":636,"path":639,"redirect_to_domain":6,"redirect_to_full_url":6,"seo":640,"stem":641,"tags":642,"__hash__":646},"posts/2025/omarchy-first-steps.md","Omarchy: primeiros passos",null,"doguskysilva",{"type":9,"value":10,"toc":621},"minimark",[11,15,26,31,38,41,44,48,60,64,67,72,75,108,117,142,148,155,208,215,294,321,489,495,538,542,549,552,607,611,614,617],[12,13,14],"p",{},"Recentemente, iniciei a montagem de um novo setup, pois antes eu usava um MacBook Air M1 e agora uso também um desktop. Desde 2017, não uso Windows no dia a dia, sempre trabalhando com alguma distro Linux — inicialmente Ubuntu e depois Fedora. Em 2024, para conhecer uma nova distro, comecei a testar o Arch, instalando apenas o que realmente precisava para meu fluxo de trabalho diário.",[12,16,17,18,25],{},"Tive acesso ao projeto do DHH, o Omakub, baseado no Ubuntu, mas logo depois surgiu uma versão voltada para Arch: o ",[19,20,24],"a",{"href":21,"rel":22},"https://omarchy.org/",[23],"nofollow","Omarchy",".",[27,28,30],"h2",{"id":29},"por-que-omarchy","Por que Omarchy?",[12,32,33,34,37],{},"Sempre configurei meus computadores para estudo e desenvolvimento de software, mantendo apenas o que realmente uso.",[35,36],"br",{},"\nSou um “cara do terminal” — grande parte do meu dia a dia passa por ferramentas CLI como Tmux, Neovim, Git, Docker e outras ligadas às linguagens que estudo ou uso. Para quase tudo, criei atalhos que aceleram meu fluxo.",[12,39,40],{},"Mesmo no MacOS, meu setup básico incluía terminal, Neovim + LazyVim, Tmux com plugins, ZSH + Oh-my-zsh, Docker ou Podman, Git com aliases e recentemente o Starship.",[12,42,43],{},"O Omarchy entra aqui: ele vem com essas ferramentas instaladas e pré-configuradas (menos o ZSH, que vem com Bash). Unir Arch, meu setup habitual e meus atalhos parecia a escolha ideal.",[27,45,47],{"id":46},"instalação","Instalação",[12,49,50,51,56,57,59],{},"O Omarchy pode ser instalado de duas formas: ",[19,52,55],{"href":53,"rel":54},"https://learn.omacom.io/2/the-omarchy-manual/96/manual-installation",[23],"manualmente",", instalando o Arch e depois os scripts do Omarchy, ou usando a ISO direta.",[35,58],{},"\nOptei pela ISO, que já traz uma configuração padrão com BTRFS, Limine como bootloader e Snapper para snapshots e rollback. Como o desktop é pessoal, configurei proteção no boot e logon direto no meu usuário.",[27,61,63],{"id":62},"ajustes-pós-instalação","Ajustes pós-instalação",[12,65,66],{},"Embora o Omarchy venha com quase tudo que costumo usar, precisei fazer algumas personalizações.",[68,69,71],"h3",{"id":70},"zsh","ZSH",[12,73,74],{},"O Omarchy vem com Bash, então instalei o ZSH e plugins principais:",[76,77,82],"pre",{"className":78,"code":79,"language":80,"meta":81,"style":81},"language-bash shiki shiki-themes github-light github-dark","yay -S zsh zsh-autosuggestions zsh-syntax-highlighting\n","bash","",[83,84,85],"code",{"__ignoreMap":81},[86,87,90,94,98,102,105],"span",{"class":88,"line":89},"line",1,[86,91,93],{"class":92},"sScJk","yay",[86,95,97],{"class":96},"sj4cs"," -S",[86,99,101],{"class":100},"sZZnC"," zsh",[86,103,104],{"class":100}," zsh-autosuggestions",[86,106,107],{"class":100}," zsh-syntax-highlighting\n",[12,109,110,111,116],{},"E como eu uso a combinação zsh + ",[19,112,115],{"href":113,"rel":114},"https://ohmyz.sh/",[23],"oh-my-zsh",", também fiz a seguinte instalação:",[76,118,120],{"className":78,"code":119,"language":80,"meta":81,"style":81},"sh -c \"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\n",[83,121,122],{"__ignoreMap":81},[86,123,124,127,130,133,136,139],{"class":88,"line":89},[86,125,126],{"class":92},"sh",[86,128,129],{"class":96}," -c",[86,131,132],{"class":100}," \"$(",[86,134,135],{"class":92},"curl",[86,137,138],{"class":96}," -fsSL",[86,140,141],{"class":100}," https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\n",[12,143,144,145,25],{},"O Omarchy possui diversos arquivos de configuração próprios para o bash, e todos eles podem ser vistos na pasta ",[83,146,147],{},"~/.local/share/omarchy/default/bash/",[12,149,150,151,154],{},"Um exemplo de arquivo que precisa ser atualizado é o ",[83,152,153],{},"init",", que possui a seguinte configuração:",[76,156,159],{"className":157,"code":158,"language":70,"meta":81,"style":81},"language-zsh shiki shiki-themes github-light github-dark","if command -v mise &> /dev/null; then\n  eval \"$(mise activate bash)\"\nfi\n\nif command -v starship &> /dev/null; then\n  eval \"$(starship init bash)\"\nfi\n...\n",[83,160,161,166,172,178,185,191,197,202],{"__ignoreMap":81},[86,162,163],{"class":88,"line":89},[86,164,165],{},"if command -v mise &> /dev/null; then\n",[86,167,169],{"class":88,"line":168},2,[86,170,171],{},"  eval \"$(mise activate bash)\"\n",[86,173,175],{"class":88,"line":174},3,[86,176,177],{},"fi\n",[86,179,181],{"class":88,"line":180},4,[86,182,184],{"emptyLinePlaceholder":183},true,"\n",[86,186,188],{"class":88,"line":187},5,[86,189,190],{},"if command -v starship &> /dev/null; then\n",[86,192,194],{"class":88,"line":193},6,[86,195,196],{},"  eval \"$(starship init bash)\"\n",[86,198,200],{"class":88,"line":199},7,[86,201,177],{},[86,203,205],{"class":88,"line":204},8,[86,206,207],{},"...\n",[12,209,210,211,214],{},"Então, alterei o meu ",[83,212,213],{},".zshrc"," para ficar com os seguintes imports e manter alguns imports padrão do bash do Omarchy.",[76,216,218],{"className":157,"code":217,"language":70,"meta":81,"style":81},"# ... previous zshrc setup\n\nsource ~/.config/zsh/shell\nsource ~/.config/zsh/aliases\nsource ~/.config/zsh/functions\nsource ~/.config/zsh/init\nsource ~/.config/zsh/envs\nsource ~/.config/zsh/inputrc\n[[ -r ~/.config/zsh/secrets ]] && source ~/.config/zsh/secrets\n\n# source from Omarchy\nsource ~/.local/share/omarchy/default/bash/aliases\nsource ~/.local/share/omarchy/default/bash/functions\nsource ~/.local/share/omarchy/default/bash/envs\n",[83,219,220,225,229,234,239,244,249,254,259,265,270,276,282,288],{"__ignoreMap":81},[86,221,222],{"class":88,"line":89},[86,223,224],{},"# ... previous zshrc setup\n",[86,226,227],{"class":88,"line":168},[86,228,184],{"emptyLinePlaceholder":183},[86,230,231],{"class":88,"line":174},[86,232,233],{},"source ~/.config/zsh/shell\n",[86,235,236],{"class":88,"line":180},[86,237,238],{},"source ~/.config/zsh/aliases\n",[86,240,241],{"class":88,"line":187},[86,242,243],{},"source ~/.config/zsh/functions\n",[86,245,246],{"class":88,"line":193},[86,247,248],{},"source ~/.config/zsh/init\n",[86,250,251],{"class":88,"line":199},[86,252,253],{},"source ~/.config/zsh/envs\n",[86,255,256],{"class":88,"line":204},[86,257,258],{},"source ~/.config/zsh/inputrc\n",[86,260,262],{"class":88,"line":261},9,[86,263,264],{},"[[ -r ~/.config/zsh/secrets ]] && source ~/.config/zsh/secrets\n",[86,266,268],{"class":88,"line":267},10,[86,269,184],{"emptyLinePlaceholder":183},[86,271,273],{"class":88,"line":272},11,[86,274,275],{},"# source from Omarchy\n",[86,277,279],{"class":88,"line":278},12,[86,280,281],{},"source ~/.local/share/omarchy/default/bash/aliases\n",[86,283,285],{"class":88,"line":284},13,[86,286,287],{},"source ~/.local/share/omarchy/default/bash/functions\n",[86,289,291],{"class":88,"line":290},14,[86,292,293],{},"source ~/.local/share/omarchy/default/bash/envs\n",[12,295,296,297,300,301,300,304,300,307,310,311,314,315,310,317,320],{},"Os arquivos ",[83,298,299],{},"shell",", ",[83,302,303],{},"aliases",[83,305,306],{},"functions",[83,308,309],{},"secrets"," e ",[83,312,313],{},"envs"," são opcionais, enquanto ",[83,316,153],{},[83,318,319],{},"inputrc"," são obrigatórios para manter o mise, o zoxide e o starship funcionando:",[76,322,324],{"className":157,"code":323,"language":70,"meta":81,"style":81},"# init\n\nif command -v mise &> /dev/null; then\n  eval \"$(mise activate zsh)\"\nfi\n\nif command -v starship &> /dev/null; then\n  eval \"$(starship init zsh)\"\nfi\n\nif command -v zoxide &> /dev/null; then\n  eval \"$(zoxide init zsh)\"\nfi\n\nif command -v fzf &> /dev/null; then\n  if [[ -f /usr/share/fzf/completion.zsh ]]; then\n    source /usr/share/fzf/completion.zsh\n  fi\n  if [[ -f /usr/share/fzf/key-bindings.zsh ]]; then\n    source /usr/share/fzf/key-bindings.zsh\n  fi\nfi\n\nif [ -d /usr/share/zsh/plugins/zsh-autosuggestions ]; then\n  # plugins (from system packages)\n  source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh\nfi\n\nif [ -d /usr/share/zsh/plugins/zsh-syntax-highlighting ]; then\n  # starship must init before syntax-highlighting\n  source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\nfi\n",[83,325,326,331,335,339,344,348,352,356,361,365,369,374,379,383,387,393,399,405,411,417,423,428,433,438,444,450,456,461,466,472,478,484],{"__ignoreMap":81},[86,327,328],{"class":88,"line":89},[86,329,330],{},"# init\n",[86,332,333],{"class":88,"line":168},[86,334,184],{"emptyLinePlaceholder":183},[86,336,337],{"class":88,"line":174},[86,338,165],{},[86,340,341],{"class":88,"line":180},[86,342,343],{},"  eval \"$(mise activate zsh)\"\n",[86,345,346],{"class":88,"line":187},[86,347,177],{},[86,349,350],{"class":88,"line":193},[86,351,184],{"emptyLinePlaceholder":183},[86,353,354],{"class":88,"line":199},[86,355,190],{},[86,357,358],{"class":88,"line":204},[86,359,360],{},"  eval \"$(starship init zsh)\"\n",[86,362,363],{"class":88,"line":261},[86,364,177],{},[86,366,367],{"class":88,"line":267},[86,368,184],{"emptyLinePlaceholder":183},[86,370,371],{"class":88,"line":272},[86,372,373],{},"if command -v zoxide &> /dev/null; then\n",[86,375,376],{"class":88,"line":278},[86,377,378],{},"  eval \"$(zoxide init zsh)\"\n",[86,380,381],{"class":88,"line":284},[86,382,177],{},[86,384,385],{"class":88,"line":290},[86,386,184],{"emptyLinePlaceholder":183},[86,388,390],{"class":88,"line":389},15,[86,391,392],{},"if command -v fzf &> /dev/null; then\n",[86,394,396],{"class":88,"line":395},16,[86,397,398],{},"  if [[ -f /usr/share/fzf/completion.zsh ]]; then\n",[86,400,402],{"class":88,"line":401},17,[86,403,404],{},"    source /usr/share/fzf/completion.zsh\n",[86,406,408],{"class":88,"line":407},18,[86,409,410],{},"  fi\n",[86,412,414],{"class":88,"line":413},19,[86,415,416],{},"  if [[ -f /usr/share/fzf/key-bindings.zsh ]]; then\n",[86,418,420],{"class":88,"line":419},20,[86,421,422],{},"    source /usr/share/fzf/key-bindings.zsh\n",[86,424,426],{"class":88,"line":425},21,[86,427,410],{},[86,429,431],{"class":88,"line":430},22,[86,432,177],{},[86,434,436],{"class":88,"line":435},23,[86,437,184],{"emptyLinePlaceholder":183},[86,439,441],{"class":88,"line":440},24,[86,442,443],{},"if [ -d /usr/share/zsh/plugins/zsh-autosuggestions ]; then\n",[86,445,447],{"class":88,"line":446},25,[86,448,449],{},"  # plugins (from system packages)\n",[86,451,453],{"class":88,"line":452},26,[86,454,455],{},"  source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh\n",[86,457,459],{"class":88,"line":458},27,[86,460,177],{},[86,462,464],{"class":88,"line":463},28,[86,465,184],{"emptyLinePlaceholder":183},[86,467,469],{"class":88,"line":468},29,[86,470,471],{},"if [ -d /usr/share/zsh/plugins/zsh-syntax-highlighting ]; then\n",[86,473,475],{"class":88,"line":474},30,[86,476,477],{},"  # starship must init before syntax-highlighting\n",[86,479,481],{"class":88,"line":480},31,[86,482,483],{},"  source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\n",[86,485,487],{"class":88,"line":486},32,[86,488,177],{},[12,490,491,492,494],{},"O arquivo ",[83,493,319],{}," foi todo copiado e apenas as teclas de atalho foram alteradas:",[76,496,498],{"className":157,"code":497,"language":70,"meta":81,"style":81},"\n# incremental history search with arrow keys\nbindkey \"^[[A\" history-beginning-search-backward\nbindkey \"^[[B\" history-beginning-search-forward\n\n# Left/Right move cursor\nbindkey '\\e[C' forward-char\nbindkey '\\e[D' backward-char\n",[83,499,500,504,509,514,519,523,528,533],{"__ignoreMap":81},[86,501,502],{"class":88,"line":89},[86,503,184],{"emptyLinePlaceholder":183},[86,505,506],{"class":88,"line":168},[86,507,508],{},"# incremental history search with arrow keys\n",[86,510,511],{"class":88,"line":174},[86,512,513],{},"bindkey \"^[[A\" history-beginning-search-backward\n",[86,515,516],{"class":88,"line":180},[86,517,518],{},"bindkey \"^[[B\" history-beginning-search-forward\n",[86,520,521],{"class":88,"line":187},[86,522,184],{"emptyLinePlaceholder":183},[86,524,525],{"class":88,"line":193},[86,526,527],{},"# Left/Right move cursor\n",[86,529,530],{"class":88,"line":199},[86,531,532],{},"bindkey '\\e[C' forward-char\n",[86,534,535],{"class":88,"line":204},[86,536,537],{},"bindkey '\\e[D' backward-char\n",[68,539,541],{"id":540},"tmux","Tmux",[12,543,544,545],{},"Nas primeiras versões do Omarchy, o tmux não vinha configurado e era necessária toda uma configuração extra. Além disso, ele não suportava a mudança de tema, que é uma das features mais interessantes. Mas, na versão 3.4, eles adicionaram o tmux com suporte aos temas e uma configuração básica bem interessante.\n",[546,547],"img",{"alt":540,"src":548},"/posts/omarchy-primeiros-passos/tmux.png",[12,550,551],{},"A única mudança que fiz foi em relação a algumas teclas de atalho:",[553,554,555,570],"table",{},[556,557,558],"thead",{},[559,560,561,565,567],"tr",{},[562,563,564],"th",{},"Hotkeys",[562,566,24],{},[562,568,569],{},"Pessoal",[571,572,573,585,596],"tbody",{},[559,574,575,579,582],{},[576,577,578],"td",{},"Prefix",[576,580,581],{},"Ctrl + Space",[576,583,584],{},"Ctrl + a",[559,586,587,590,593],{},[576,588,589],{},"Painel Vertical",[576,591,592],{},"Prefix + v",[576,594,595],{},"Prefix + |",[559,597,598,601,604],{},[576,599,600],{},"Painel Horizontal",[576,602,603],{},"Prefix + h",[576,605,606],{},"Prefix + -",[27,608,610],{"id":609},"conclusão","Conclusão",[12,612,613],{},"O Omarchy se mostrou uma boa distribuição para o meu dia a dia, tanto no uso quanto na configuração de novas máquinas. Recentemente, comprei um Lenovo Yoga Slim 7i e fiz o processo de instalação, ativei os ambientes de desenvolvimento que uso, baixei meu repositório de backup com meus dotfiles e pronto: estava com tudo configurado. E o melhor é que não existe fricção quando troco do notebook para o PC, pois tenho exatamente o mesmo ambiente.",[12,615,616],{},"Nesses 7 meses, não senti falta de todas aquelas configurações do Ubuntu, Fedora ou Mint, pois, como já disse, boa parte do tempo eu passo no browser ou no terminal.",[618,619,620],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}",{"title":81,"searchDepth":168,"depth":168,"links":622},[623,624,625,629],{"id":29,"depth":168,"text":30},{"id":46,"depth":168,"text":47},{"id":62,"depth":168,"text":63,"children":626},[627,628],{"id":70,"depth":174,"text":71},{"id":540,"depth":174,"text":541},{"id":609,"depth":168,"text":610},[631,632,633],"linux","desenvolvimento","pessoal","2026-04-04","Minha experiência migrando para o Omarchy, configurando meu setup de desenvolvimento e ajustando ferramentas como ZSH, Neovim e Tmux.",false,"md",{},"/2025/omarchy-first-steps",{"title":5,"description":635},"2025/omarchy-first-steps",[643,644,70,540,645],"omarchy","archlinux","neovim","GKzLjAOTxjdAFL0c7GJg12Kqiuc9MekSy2y3zDeBf4Q",[648],{"id":649,"avatar":650,"default":183,"description":651,"extension":652,"meta":653,"name":654,"repository":655,"stem":656,"username":7,"__hash__":657},"authors/authors/douglas-silva.yml","/images/me.jpeg","Software Engineer passionate about technology, programming, and understanding how things work.","yml",{},"Douglas Silva","https://github.com/doguskysilva","authors/douglas-silva","cC1FS5pBq5GoSIcM6HteR1_J2sdCOU6kH9_8Kwy1ZIo",[6,659],{"title":660,"path":661,"stem":662,"children":-1},"Hello World!","/2025/hello-world","2025/hello-world",1776562797973]