Windowsã§ã·ã¹ãã ãæ±ããã«ãã¹ãéã(ã³ãã³ãããã³ãã)
ç§ã¯ãWindowsã§å°è¦æ¨¡ãªããã°ã©ã ãä½æããå ´åã¯ã³ãã³ãããã³ããã使ãã
IDEã使ãã¨ãå°è¦æ¨¡ãªããã¸ã§ã¯ãã®ä¹±ç«ã§ä¸ä¾¿ã«ãªãããã ã
ã³ãã³ãã©ã¤ã³ããã³ã³ãã¤ã«ãªã©ãè¡ãã¨ãªãã¨ãã³ã³ãã¤ã©ãªã©ã®ãããã£ã¬ã¯ããªã
ç°å¢å¤æ°ã®PATHã«ç»é²ããªããã°ãªããªãã
é常ã¯ãã·ã¹ãã ã®è©³ç´°è¨å®ããªã©ã使ç¨ãã¦è¨å®ãããã使ç¨ãããã¼ã«ãå¢ãã¦ããã«å¾ã£ã¦
ç°å¢å¤æ°ãè¥å¤§ãã¦ãããæ°ã«ããªã人ã¯æ°ã«ããªãã ããããæ°ã«ãªã人ã«ã¨ã£ã¦ã¯ãã¯ãæ°ã«ãªãã
ç¡è¨ç»ã«ãã¹ã追å ãã¦ãã¨ããååã®è¡çªãã¨ããåé¡ãçºçããã
ä¾ãã°ãç§ã®ç°å¢ã«ã¯lsã³ãã³ããï¼ã¤å
¥ã£ã¦ãããä¸ã¤ã¯MinGWã®MSYSã«ãããã²ã¨ã¤ã¯Gitã«å«ã¾ãã¦ãããã®ã§ããããããã¯åä½ãã»ã¼åããªã®ã§ãã¾ãå°ããªãããå ´åã«ãã£ã¦ã¯åããã¡ã¤ã«åã§ãå¼æ°ã®è¨å®æ¹æ³ãéãå®è¡ãã¡ã¤ã«ããããããããªãã
ãã®ãããªã¨ããããã³ãã³ãã§å®è¡ãããã®ãã©ã®å®è¡ãã¡ã¤ã«ããèããªããä½æ¥ããã®ã¯è¦çã§ããã
ããããããéããã£ã¬ã¯ããªããªã¼ã«ãããã¨ãããã¨ã¯ãç®çãéããã¨ãããã¨ã§ããã
è¤æ°ã®ãç°ãªãç®çã®ããã«ä½¿ããã®ãã·ã¹ãã ã®ç°å¢å¤æ°ãªã©ã¨ããå
±éãã¼ã¿ãã¼ã¹ã«æ ¼ç´ãã¦ããã®ã¯ãããããã®ã§ããã
ãããããã½ããã¦ã§ã¢ãã¢ã³ã¤ã³ã¹ãã¼ã«ããå¾ããã®ã½ããã¦ã§ã¢ã使ç¨ããããã®ãã¹ãæ®ã£ã¦ããã®ã¯ãã¾ãæ°æã¡ããããã®ã§ã¯ãªãã
ããã§ãã·ã¹ãã ãæ±ããããã¤ç°¡åã«ã³ãã³ãã©ã¤ã³ã§ããã°ã©ã ãéçºããããã«ã以ä¸ã®æ¹æ³ãåããã¨ã«ããã
1. ç°å¢å¤æ°ãè¨å®ããããããã¡ã¤ã«ãä½æãã
å
容ã¯
@set PATH=%PATH%;"C:\path\to\your\tools\bin"
ã
@doskey command=alias for the command
ã®ç¾
åã«ãªãã ããã
(ç°å¢å¤æ°ã®è¨å®ã®è£è¶³ã¯å¾åãã«ãã)
ããã§ã¯C:\tools\set-env.batã¨ããååã§ä¿åãããã
2. ã³ãã³ãããã³ããã¸ã®ã·ã§ã¼ãã«ãããä½æãã
ã©ãã§ãããããã¨ãããããã¹ã¯ãããã«ä½ããã¨ã«ããã
ãã¹ã¯ãããã®ãªã«ããªãå ´æã§å³ã¯ãªãã¯->ãæ°è¦ä½æã->ãã·ã§ã¼ãã«ãã(S)ã
ãã·ã§ã¼ãã«ãã(S)ããã¯ãªãã¯ããã¨ãã·ã§ã¼ãã«ããã®ä½æãã¨ããã¦ã£ã³ãã¦ãåºãã
ããã§ããé
ç®ã®å ´æãå
¥åãã¦ãã ãã(T):ãã¨æ¸ããä¸ã®ããã¹ãããã¯ã¹ã®å
¥åããæååãèå¿ã§ããã
ããã¹ãããã¯ã¹ã«ã
cmd /K C:\tools\set-env.bat
ã¨å
¥åããã次ã¸ããã¿ã³ãã¯ãªãã¯ããã
ãã¨ã¯ããã®ã·ã§ã¼ãã«ããã®ååãå
¥åãã¦ãã ãã(T):ãã¨è¨ãããã®ã§
é©å½ãªååãå
¥åãã¦çµããã§ããã
ãã®ã·ã§ã¼ãã«ãããããã«ã¯ãªãã¯ããã ãã§é©åãªå ´æã«
ãã¹ãéã£ãã³ãã³ãããã³ããã®ã¦ã£ã³ãã¦ã表示ãããã
ã·ã¹ãã ã®ç°å¢è¨å®ã¯ããã£ã¦ããªããããã¼ã«ã使ã度ã«ãã«ãã¹ãå ¥åããå¿ è¦ããªãã
æ´ã«ãã³ãã³ãããã³ãããéãç®çæ¯ã«ããããã¡ã¤ã«ã¨ã·ã§ã¼ãã«ãããä½æããã°ã
ãååã®è¡çªããé¿ãããã¨ãã§ããã