Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
tl;dr fig starship zsh fzf sheldon ãªã vscode ã® .vscode/tasks.json ã fishã¨é常ã«ç¸æ§ãæªããã¨ãã« fish-nvm ã使ã£ã¦ããã¨ãfish çµç±ã®ãã¹å®è¡æã« node 㨠npm ã¸ãã¹ãéããªãã ãããã fish ã使ã£ã¦ããçç±ã¯ autocomplete ãå¿«é©ã«ããããã ã£ããã1å¹´ããã Fig ã使ã£ã¦ãã¦ãè£å®ã¯ãããä»»ãã¦ããã¨æ°ã¥ããã Fig ã¯ããããã㤠ãããã fish ã®æ¡å¼µã³ãã³ãã使ããªãããã«çæ´»ãã¦ãããæ¹è¨ãè¦ããããªããã¨ããã bash æ¡å¼µã zsh æ¡å¼µãããã¾ãè¦ããããªãã
zshã§ã¯ãä½ãæä½ãè¡ã£ãã¨ãã«å¼ã³åºãããhooké¢æ°ãç»é²ã§ãããããã使ãã¨ãä¾ãã°ãã³ãã³ããå®è¡ãããã³ã«ãã®é¢æ°ãå®è¡ãããã¨ãããã¨ãã§ããããã«ãªãããããã§ã«ä½¿ã£ã¦ã人ãå¤ãã¨æããã©ãããã§ãã®ä½¿ãæ¹ãã¾ã¨ãã¦ããã hooké¢æ°ãç»é²ããã«ã¯ãadd-zsh-hooké¢æ°ã使ãã使ãæ¹ã¨ãã¦ã¯ããadd-zsh-hook <hookå> <é¢æ°å>ãã¨ããå½¢ã§å¼ã³åºãããhookåãã¯ã©ãããã¨ãã«é¢æ°ãå¼ã³åºããããã¨ããã¤ãã³ã種å¥ã表ãæååã§ã詳ããã¯å¾ã§èª¬æããã ä¾ æ¬¡ã®ä¾ã§ã¯precmdã®ã¨ãã«precmd_function1ã¨ããé¢æ°ãå¼ã³åºãããã«ç»é²ãã¦ããã
å æ¥ã®Apple Eventã§ã Mac Studio ã iPad Air(第5ä¸ä»£) ãçºè¡¨ããããããã Apple M1ããã ãããã¡ã¯ãã¹ã¿ã³ãã¼ãã«ãªã£ããªãã¨æãã¦ãã¾ããèªåãããã¾ã§ãæ¥åç¨PCã¨ãã¦MacBook Pro 2017ã使ã£ã¦ããã®ã§ãããæªåé«ããã¿ãã©ã¤ãã¼ãã¼ãã®ç ´æããã£ããã« MacBook Air(M1) ãè³¼å ¥ãã¦ãããã¾ããã ãã£ããæ¥åã§ä½¿ç¨ãã¦ããããã«ã»ããã¢ãããããã®ã§ããããã¯ãIntelãããã¨ã®éãã«æ¸æã£ãã®ã§åå¿é²ã¨ãã¦ã¾ã¨ãã¾ãããã®è¨äºã¯å ã 社å ã®ãã¬ãã¸ã«æ¸ãäºå®ã ã£ãã®ã§ãããèªåèªèº«QiitaãZennã®è¨äºã«ããªãå©ãããã¾ããããã®è¨äºãä»å¾M1 Macãã»ããã¢ãããã人ã®å½¹ã«ç«ã¦ã°ã¨æã£ã¦ãã¾ãã MacOSã®åºæ¬çãªè¨å®ã使ããããå¤æ´ãã è³¼å ¥ããã°ããã®Macã¯Dockã«å¤§éã®ã¢ããªãç»é²ããã¦
function open() { if [ $# != 1 ]; then explorer.exe . else if [ -e $1 ]; then cmd.exe /c start $(wslpath -w $1) 2> /dev/null else echo "open: $1 : No such file or directory" fi fi } zshã§ãã試ãã¦ããªããããã¶ãbashã§ãä¼¼ããããªæãã§ãããã¨æãã ã¨ã¯ã¹ããã¼ã©ã«ããopen Macã®ã¿ã¼ããã«ã§ã¯ãopen filenameã¨ããã¨ããã®ãã¡ã¤ã«ãé¢é£ä»ããããã¢ããªã§éããã¨ãã§ãããã¾ããopen .ãªã©ã¨ããã¨Finderã§ã«ã¬ã³ããã£ã¬ã¯ããªãéãã¦ä¾¿å©ã ã Windowsã®WSLã§ä¼¼ããããªãã¨ããããã¦ã
oh-my-zsh使ã£ã¦ãããã©ããzshãéãæ°ããã¦ããã ä½ãã¨ã¡ããã¡ããã«ã¤ã¼ã³ã§èªåã§ããã£ã¦ãã®ã¯ãããã©ãæ°ä»ãããoh-my-zshå ¥ãããã¨ã«ãããã¨å¤ããªããããããããã£ã¨ç°¡åã«åç¾ã§ãã¦ãã§ã便å©ãªç°å¢ãã©ã¯ãã¦æã«å ¥ãããã ã¨ãããã¨ã§zshã®ãã¬ã¼ã ã¯ã¼ã¯ã§å²ã¨äººæ°ã£ã½ãPreztoã使ããã¨ã«ããã Prezto â Instantly Awesome Zsh Preztoã®ã¤ã³ã¹ãã¼ã« ãããããã¾ã¨ã¾ã£ã¦ããã®ã§ãåç §ãããã¨ãããå¤åèªåã®ã¤ã³ã¹ãã¼ã«æã«ã¯æ¬å®¶ã®GitHubè¦ã¦ãããããã£ãããã£ã¦æ¥æ¬èªã®äººæ°ãããªè¨äºãæã£ã¦ããã ããªãã§ããã©ãã oh-my-zshã使ã£ã¦ãã¦éãã¨æãã¦ããæ¹ãpreztoã¯ãããï¼ ããã©ã«ãã§å¼ã³åºãã¨ãã£ã¿ã確èªãã éç¨ãã¦ããä¸ã§æ°ã«ãªã£ãã®ããhubã³ãã³ãã§pull-requestéãã¨ãã«
ç¹ã«ãã ããã¯ãªãã®ã§ãããbashã使ãç¶ãã¦ããèªåã«çåãæããzshã«åéºãã¦ã¿ããã¨ã«ãã¾ããã幸ãã«ãhomebrewã§å°å ¥ã§ããããã§ãããè¨å®ãã¡ã¤ã«ãå ±åã§ãããããªã®ã§(ãã¨ã®.bash_profileãæ¸ãæããå¿ è¦ããªã)ã試ãã¦ã¿ã¾ããzshã使ããªããèªåã®ã¹ãã«ã®åä¸ãæãã°ããã§ã(ç¬
ãæã çè ã¯bashã«ãzshã«ãçãã§ããããã¦ããã®è¨äºã¯macOSã対象ã§ãã ããã¦ããã¦ãnçªç ãã®è¨äºã§ã(n>2) äºããäºæ¿ãã ããã åç½®ã åæ¥ã®WWDC2019ã«ã¦ã macOS Catalinaãçºè¡¨ãããã®ã¯ãã®è¨äºãèªã¾ãã¦ããçããã®è¨æ¶ã«ãæ°ãããã¨æãã¾ãã ã¨ããã§ãmacOS Catalinaããã¯ãæ°è¦ã¦ã¼ã¶ã¼ã®è¨å®æã«ããã©ã«ãã®ãã°ã¤ã³ã·ã§ã«ã bash ãã zsh ã«ãªãããã§ããåèãªã³ã¯ã¯ãã¡ã ã¨ãããã¨ã§ããããæ©ã«æ¯è¦ã§ããMacã«ã¦bashããzshã« å¯è½ãªéãæ¢åã®è¨å®ãå¼ãç¶ã㧠zshã«ä¹ãæãã¤ã¤ãè¯ãæãã«æ´ãã¦ã¿ãã®ã§ãèªåãè¡ã£ãæé ãæ®ãã¦ããããã¨æãã¾ãã åèã«ãªãã°å¹¸ãã§ãã åæç°å¢ çè ãè¡ã£ãéã®ç°å¢ã¯ä»¥ä¸ã®éãã§ãã macOS 10.14.5 (Mojave) iTerm2 3.2.9 Hom
ããã§è¨ãhistoryã¨ã¯ï½¤ã³ãã³ãå±¥æ´ã®ãã¨ã§ã。ã·ã§ã«ã¯ãã¡ããzshã§ã。ãã®æ稿ãèªãã§ããã¦ãã人ã¯ï½¤å¤åzshã使ã£ã¦ããã¨æãã¾ãã、ã¾ã å ¥ãã¦ãªãã¨ãã人ã¯ä»¥ä¸ã®æ§ãªæé ãè¸ãã¨ï½¤zshãã¤ã³ã¹ãã¼ã«ãããã¨ãã§ãã¾ã。 #zshã®ã¤ã³ã¹ãã¼ã« ##Windowsã¦ã¼ã¶ã¼ã®å ´å Cygwinã¨ãããã®ã使ãã¾ã。ã¾ã、Ctrl+Rãæ¼ãã¦ï½¤powershellã¨å ¥åã、Enterãæ¼ãã¾ããã。ããã¦ï½¤ä»¥ä¸ã®ã¹ã¯ãªãããå®è¡ãã¾ã。ã¾ãã¯ï½¤ãã¡ããããã¦ã³ãã¼ããã¦ï½¤å®è¡ãã¡ã¤ã«ãããã«ã¯ãªãã¯ããã®ãããããããã¾ãã。ãã®éã¯ï½¤Wgetã ãã«ã¯ãã§ãã¯ãå ¥ãã¦ããã¾ããã。 function Install-Cygwin { param ( $TempCygDir="$env:temp\cygInstall" ) if(!(Test-Path -Path $TempC
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}