← Indietro

Configurazione macOS per power user

Ho configurato il mio Mac per renderlo veloce da esplorare e usare quanto Linux. Le cose principali che ho usato sono:

Partendo da quello più semplice, Rectangle è il mio gestore di finestre. In pratica uso solo la scorciatoia left_option + left_control + enter per mettere una finestra a schermo intero e centrarla.

Il segreto di tutto questo è non usare mai e poi mai i desktop o la modalità a schermo intero integrata di macOS. Rallentano enormemente il passaggio tra le app: mettile semplicemente a schermo intero e spostati tra di esse con cmd + tab e le scorciatoie per aprire Raycast.

L'altro elemento chiave è Karabiner Elements. Lo uso per creare una hyper key sul tasto Bloc Maiusc. L'ho configurato in modo che, se lo tocchi, invii escape, mentre se lo premi insieme a qualcos'altro agisca come control + option + shift + command. È incredibilmente potente per navigare e lavorare, soprattutto insieme a Raycast.

Ho associato Raycast a hyper + space (che in realtà è caps lock + space). Poi, in Raycast, cerca Extensions e quindi un'applicazione: puoi impostarle una scorciatoia da tastiera. Le mie sono tutte hyper + qualcosa. Puoi vederle tutte qui.

Configurazioni super facili

Quando ho configurato il mio Mac, ho fatto un sacco di personalizzazioni per tmux, Ghostty e Cursor. Non ho mai letto nessuna delle loro configurazioni: alla fine ho creato dei piccoli comandi per OpenCode e ho fatto scrivere tutto a un'AI. Non sono complessi, ma se vuoi usare i miei come riferimento:

Ghostty

~/.opencode/command/ghostty.md

---
description: Help make changes to my terminal emulator
agent: build
---

Run "ghostty +show-config --default --docs" to see the full guide on how to configure my terminal emulator Ghostty. In this session I want you to help me get it configured. When I tell you to make a change, reference the docs on how to do it, and then write the changes to: "~/Library/Application Support/com.mitchellh.ghostty/config"

Cursor

~/.opencode/command/cursor.md

---
description: Help fine tune my Cursor keybindings
agent: build
---

My Cursor (VSCode) keybindings are located at: "~/Library/Application Support/Cursor/User/keybindings.json". In this session your job is to help me fine tune them.

tmux

~/.opencode/command/tmux.md

---
description: Help fine tune tmux config
agent: build
---

My tmux config is located at: ~/.tmux.conf Your job is to make the changes I describe to that config file. Every time you make a change, make sure to end by giving me the command I need to restart my current tmux instance and use the changes immediately

Ti basta aggiungerli, poi avvia OpenCode nella directory radice e usa /tmux per personalizzare la configurazione di tmux senza dover capire come impostare un'altra configurazione.