macOS पावर यूज़र सेटअप
मैंने अपने Mac को इस तरह सेट अप किया है कि उस पर नेविगेट करना और काम करना Linux जितना तेज़ हो। इसके लिए मैंने मुख्य रूप से ये चीज़ें की हैं:
- Karabiner Elements (विस्तृत जानकारी यहाँ)
- Raycast
- Rectangle
सबसे आसान से शुरू करें: Rectangle मेरा विंडो मैनेजर है। विंडो को फ़ुल-स्क्रीन करने और बीच में रखने के लिए मैं लगभग हमेशा सिर्फ़ left_option + left_control + enter बाइंडिंग इस्तेमाल करता हूँ।
इस सबकी कुंजी यह है कि macOS के desktops या built-in full screen का कभी इस्तेमाल न करें। इससे ऐप्स के बीच स्विच करना बहुत धीमा हो जाएगा; बस उन्हें फ़ुल-स्क्रीन करें और cmd + tab व Raycast खोलने वाले शॉर्टकट्स से इधर-उधर स्विच करें।
अगला अहम हिस्सा Karabiner Elements है। मैं इससे caps lock पर एक hyper key बनाता हूँ। मैंने इसे इस तरह बाइंड किया है कि टैप करने पर यह escape दबाता है, और किसी दूसरी कुंजी के साथ दबाने पर control + option + shift + command की तरह काम करता है। नेविगेशन और काम के लिए यह बेहद शक्तिशाली है, खासकर Raycast के साथ।
मैंने Raycast को hyper + space से बाइंड किया है (जो असल में caps lock + space है)। फिर Raycast में extensions खोजें, कोई application खोजें, और उसके लिए keybinding सेट कर सकते हैं। मेरी सभी keybindings hyper + कुछ हैं। आप उन सभी को यहाँ देख सकते हैं।
बेहद आसान कॉन्फ़िगरेशन
अपने Mac को सेट अप करते समय मैंने tmux, Ghostty और Cursor के लिए ढेर सारी कस्टम चीज़ें कीं। मैंने इनमें से किसी की भी configs कभी नहीं पढ़ीं; बस OpenCode के लिए छोटे-छोटे commands बनाए और फिर AI से उन्हें लिखवा लिया। वे जटिल नहीं हैं, लेकिन अगर संदर्भ के लिए मेरी configs चाहिए हों:
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इन्हें बस यहाँ रख दें, फिर रूट डायरेक्टरी में OpenCode शुरू करें और एक और कॉन्फ़िग सेटअप समझने की झंझट के बिना अपने tmux कॉन्फ़िग को कस्टमाइज़ करने के लिए /tmux चला सकते हैं।