æã®æµãã¯æããããã®ã§ã25æã§ç¤¾ä¼äººã«ãªããä»å¹´ã§ç¤¾ä¼äººäººçã20å¹´ã®ç¯ç®ã®å¹´ã ã£ããè¨ãæããã¨ãä»®ã«65æå®å¹´ã ã¨ããã¨ç¤¾ä¼äººäººçã®æãè¿ãã®å¹´ã§ããã£ããããã
ãªã¼ã«ãã¿ã¤ããªã¤ã³ãã©ã¨ã³ã¸ãã¢ãªã®ã§ä»äºã§ã¯ãã¼ã£ã¨ CLI ä¸å¿ã®çæ´»ã«ãªã£ã¦ããã®ã§ãã¿ã¼ããã«ç°å¢ã¯çæ´»ã®ä¸é¨ã¨ãã¦ç¶ã足ãã§æ´åããã¦ãããç¶ã足ãã¦æ´åãã¦ããã¨ãããã¨ã¯é£ç¶çãªå¤åã§ç¹ã«æ°ããåºæ¿ã¯ãªãæ·¡ã ã¨æ¥ã ã®ä»äºã«æ¯éãªã使ã£ã¦ããã®ã§ãã³ããªãªæ°é ããã£ãã
ãã¶ããä»ã®ã¾ã¾ã®ç°å¢ã使ãç¶ãã¦ãç¹ã«ä¸æºã¯ãªããã©ãç¯ç®ã®å¹´ã¨ãããã¨ããã£ã¦æ°ãã風ãããã¦ã¿ãããã¨ãããã¨ã§ã¿ã¼ããã«ç°å¢ã§ä½¿ã£ã¦ãããã¼ã«é¡ãå ¥ãæ¿ãã¦ã¿ãã
å ¥ãæ¿ãå¾ã®æ§ç°å¢ã¨æ°ç°å¢ã®ãã¼ã«é¡ã¯ä»¥ä¸ã®ãããªæãã«ãªã£ãã
æ§ç°å¢ | æ°ç°å¢ | |
---|---|---|
ã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿ | iTerm2 | WezTerm |
*env ç³»ãã¼ã« | *env å種 | mise |
zsh ããã³ãã | èªä½ | starship |
ã¿ã¼ããã«åãã¨ãã£ã¿ | MacVim | Neovim |
ããããã¡ã¤ã«ç®¡ç | ãã¦ãªã | chezmoi |
ã¿ã¼ããã«ãã«ããã¬ã¯ãµã¼ | tmux | tmux |
ã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿
ã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿ã® iTerm2 㯠X ã®éå»ã®ãã¹ããé¡ãã¨å°ãªãã¨ã 2011å¹´ã®æç¹ã§ã¯ä½¿ã£ã¦ãããããã
iTerm2ãç«ã¡ä¸ãã¦ãscreen -> return -> sudo port sync -> returnãããã³ãããè¿ã£ã¦ããã¾ã§ã«æã¦ãããä½ããããã¨ãããã¨æã£ã¦ããã
— nabeo (@nabeo) 2011å¹´3æ5æ¥
é·ãã使ã£ã¦ããã¨ãããã¨ããã£ã¦ãiTerm2 ã«ã¯å¤§ããªä¸æºã¯ãªãã£ããã©ããããã«åä½ãéãã¨ããã¨ãããã£ã¦ã軽éãã¤æ©è½çã«ã«ãã¼ã§ãã代æ¿ã®ã¿ã¼ããã«ã¨ãã¥ã¬ã¼ã¿ãæ¢ããã¨ãããWezTerm ãè¯ããããªã®ã§ä¹ãæãã¦ã¿ãã
WezTerm 㯠Lua ã§è¨å®ãæ¸ããããããã¥ã¡ã³ããå å®ãã¦ããã®ã§ãèªåã®ãããããã¨ã¯å¤§ä½ã§ããã¨ããã¨ãããæ°ã«å ¥ã£ã¦ããããã¨ãLua ã¯å¾è¿°ã® Neovim ã§ã使ããã¨ã«ãªãã®ã§ãè¨å®ã§ä½¿ç¨ããè¨èªãåãã¨ããã¨ãããé½åãããã£ãã
ãã ããWezTerm ã¯ã¿ã¼ããã«ãã«ããã¬ã¯ãµã¨ãã¦ã使ãããã ãã©ãtmux ã® choose-window
ç¸å½ã®åä½ãå®ç¾ã§ããªãã®ã§ã¿ã¼ããã«ãã«ããã¬ã¯ãµé¨åãç½®ãæãããã¨ã¯ã§ããªãã£ãã
ã§ããã®è¨äºãæ¸ãã¦ä¸æ¸ãã§å¯ããã¦ãããã¡ã« Ghostty ãæ£å¼ãªãªã¼ã¹ããã¦ãã©ãããã...ã¨ãªã£ã¦ããã
*env ç³»ãã¼ã«
ã¹ã¯ãªããè¨èªãåãæ¿ãã env ç³»ãã¼ã«ã¯ rbevn ã pyenv ãªã©åå¥ã® env ç³»ãã¼ã«ã使ã£ã¦ãããã©ãmise ã«ä¸æ¬åããã
ä¸æ¬åãããã¨ã§ *env ç³»ãã¼ã«ã®è¨å®ã1ã¤ã«ã¾ã¨ãããã¨ãã§ããããæ´æ°ãåãè¾¼ãã¨ãã mise up
ã ãã§æ¸ãã¨ããã®ã¯å¿«é©ã ã£ãã
*env ç³»ãã¼ã«ã® rbenv åãã« gem ã®ç§»è¡ç¨ã¨ã㦠rbenv-gem-migrate ã¨ãããã©ã°ã¤ã³ãèªä½ãã¦ãããã©ãmise ã§ã¯ ~/.default-gems
ã¨ãã¦å
¨ã¦ã®ãã¼ã¸ã§ã³ã§å
¥ãã¦ãããã gem ãæå®ã§ããã®ã§ãã§ããã役御å
ã¨ãªã£ãã
zsh ããã³ãã
zsh ã¯å¦çã®é ãã使ã£ã¦ãã¦ãããã³ããã¯èªå㧠PROMPT
ç°å¢å¤æ°ã¨ RPROMPT
ç°å¢å¤æ°ã調æ´ãã¦ãããã©ãä»é¢¨ãªããã³ãããæ軽ã«å®ç¾ãããã£ãã®ã§ãstarship ã«ä¹ãæããã
ä»é¢¨ã§è¦ãç®ãè¯ãã¨ããã ãã§ã¯ãªããå種ã¢ã¸ã¥ã¼ã«ã§ã«ã¬ã³ããã£ã¬ã¯ããªã®ç¶æ ãããã³ããã«è¡¨ç¤ºããã¦ãã¦ä¾¿å©ã ã£ããã¨ãã« Git Status ã¢ã¸ã¥ã¼ã«ã¯ãªã¢ã¼ããã©ã³ãããã®ä¹é¢ãä¸ç®ã§ãããããã«ãªã£ãã®ã§ããããã¯ãã©ã³ããçããæã«ãªã¢ã¼ããã©ã³ãã® HEAD ã®åãè¾¼ã¿æ¼ããæ¸ã£ãããstash ã®ç¶æ ãä¸ç®ã§ãããã®ã§ã´ãæé¤ãæã£ãã
ã¿ã¼ããã«åãã¨ãã£ã¿
é常æ㯠Emacs ã使ã£ã¦ãããã©ãã¿ã¼ããã«å
ã§ã¡ãã£ã¨ããä¿®æ£ã EDITOR
ç°å¢å¤æ°ã¯ MacVim ã«ä»å±ãã¦ãã vim
ã³ãã³ãã使ã£ã¦ããã~/.vimrc
ã Emacs ã»ã©ã§ã¯ãªããã©ããããªãã«è²ã¦ãããã©ãã¡ãã£ã¨ããäºæ
ã§è²ã¦ããç°å¢ãå¹ã£é£ã°ããæã®ããã¯ã¢ããæ¼ãã§ä¸å¹´ã»ã©ç´ ã®ç¶æ
ã§ä½¿ãç¶ãããã¨ã«ãªã£ããã¬ãããªä½¿ã£ã¦ããããã§ã¯ãªãã®ã§ã大ããªä¸æºã¯ãªãã£ããã©ãå°ã使ãã¥ãããªã¼ã¨æããå ´é¢ã«ã¯ééããã®ã§ãååã使ã£ã¦ãã Neovim ãå°å
¥ãã¦ã¿ãã
ãã©ã°ã¤ã³ç®¡ç㯠LazyVim ã使ã£ã¦ Treesitter ã«ããã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ãã LSP ã®è¨å®ãªã©ãå ¥ãã¦ãããç®çã«ãã£ã Neovim ã®ãã©ã°ã¤ã³ãæ¢ãæ㯠dotfyle.com ã¨ãããµã¤ãã§ããããªäººã®è¨å®ãè¦ããããç®çå¥ã®äººæ°ã®ãã©ã°ã¤ã³ããããã®ã§ããªãéå®ããã
ãã¨ã¯ zsh ã®ã¨ã¤ãªã¢ã¹ã¨ãã¦ä»¥ä¸ãè¨å®ãã¦ãããã
alias vim=nvim alias view='nvim -mR'
Neovim ã®è¨å®ã¯ Emacs ã¨åæ§ã« github ã®å人ã¢ã«ã¦ã³ãã§ãããªãã¯ãªãã¸ããªã¨ãã¦å ¬éãã¦ããã
ããããã¡ã¤ã«ç®¡ç
ããããã¡ã¤ã«ç®¡çã¯ä»¥åã¯ãã¡ã¤ã«ã® symlink ã§ç®¡çããæ¹æ³ã主æµã ã£ããã©ãsymlink ã§ã®ç®¡çã¯ãªãã¨ãªãå«ã ã£ãã®ã§ãããã¾ã§ã¯é¿ãã¦ãããããããããã¯ã¢ãããã¨ããã«è²ã¦ã¦ãã ~/.vimrc
ãå¹ã£é£ã°ããããè¨å®ãã¡ã¤ã«ã Lua ã§è¨è¿°ã§ãããã¼ã«ãå¢ãããããã®ã§ãããããã¡ã¤ã«ç®¡çã Github ã§ç®¡çããæ©éãé«ã¾ã£ãã
ãããªãªãã§ãchezmoi ã¨ãããã¼ã«ãå®ãã¡ã¤ã«ãæ®ãã¦ç®¡çã§ãããããªã¢ã¼ããªãã¸ããªã§ã®å ¬éã«èºèºããããªç§å¯æ å ±ã¯æå·åãã¦ç®¡çã§ãããã¨ãããã¨ãããã£ãã®ã§ãä»åã®ãã¨ããã£ããã« chezmoi ã«ããããããã¡ã¤ã«ç®¡çãåãå ¥ãããã¨ã«ããã
chezmoi ãå人㮠Github ã¢ã«ã¦ã³ãã«ãªãã¸ããªãä½ã£ã¦ãããã©ãç§å¯æ å ±ã®æå·åæ¼ããæãã®ã§ãã©ã¤ãã¼ããªãã¸ããªã¨ãã¦éç¨ãã¦ããã
chezmoi 㯠Go ã®ãã³ãã¬ã¼ãã§ãã¡ã¤ã«ãè¨è¿°ã§ããã®ã§ãä»äºç¨ã®ãã·ã³ã¨ç§ç¨ã®ãã·ã³ã§ãã·ã³ã®ã³ã³ããã¹ããèæ ®ãtãç¶æ ã§è¨å®ãå ±æãããã¨ãå¯è½ã¨ãããã¨ãããã£ãããã¨ãå¤é¨ãªãã¸ããªã chezmoi ã®åæ対象ã«å ¥ãããã¨ãã§ããã®ã§ãEmacs ã Neovim ã®è¨å®ã chezmoi ã®åæ対象ã«ããããã¨ã§ããããã¡ã¤ã«ç®¡çã®çµ±ä¸ãã§ããã¨ãããã¨ãå¬ããã£ãã
ã¾ã¨ã
ãã¤ã¯10年以ä¸å¤§ããå¤ãã¦ããªãã£ãç°å¢ã®å ¥ãæ¿ãã決å¿ã§ããã®ã¯ä»ã®ä¼ç¤¾ã§ã¯ SSH ã«ãããªã¢ã¼ããã°ã¤ã³ãã»ã¨ãã©å¿ è¦ãªãã¦ãã¿ã¼ããã«ç°å¢ã¯èªåã®ãã·ã³ã ããèãã¦ããã°è¯ãã¨ããç¶æ ã«ãªã£ãã¨ãããã¨ã大ããã£ããä»ã¾ã§ã¯æå ã®ç°å¢ãç¾ä»£é¢¨ã«ããã¨ãã¦ã SSH ã§ãªã¢ã¼ããã°ã¤ã³ããã¨ãã«æä½æã大ããç°ãªããã¨ã§ä½æ¥å¹çãè½ã¡ããã¨ãå«ãã£ã¦å¤åãæãã§ããã¨ããå´é¢ã¯ãã£ããã©ãããããå¿é ãããªãå°ãããªã£ãã®ã§å¤æ´ã«è¸ã¿åããããã£ãã
ä»åã®å¤æ´ã§10年以ä¸æ¦ãããã¨ããã¨ããªãå¾®å¦ã ãã©ãããããã¡ã¤ã«ã管çããããã«ãªã£ãã®ã§ã大ããªå¤æ´ããã¦å¤±æãã¦ãåãæ»ããã¨ã¯ã§ããã®ã§å¤æ´ãããããªã£ãã
ãã¨ãé·ããã¨ä½¿ãç¶ãã¦ãããã¼ã«ã¨ã㦠zsh ã¨ããè¶ å¤§ç©ããããã©ãmacOS ã®ããã©ã«ãã·ã§ã«ã zsh ãªã®ã§ãã®ã¾ã¾ä½¿ãç¶ããããããªããã¨æã£ã¦ããã