zsh zshã§OSå¤å®ãããã«ã¯"${OSTYPE}"ã使ãã ãªã®ã§OSæ¯ã«è¨å®ãåãåããã«ã¯ case ${OSTYPE} in darwin*) #ããã«Macåãã®è¨å® ;; linux*) #ããã«Linuxåãã®è¨å® ;; esacå¤ã¯zshã§"echo $OSTYPE"ãã¦ç¢ºèªããã°è¯ããMacãªãdarwinã®å¾ã«ãã¼ã¸ã§ã³ãä»ãã"darwin10.0"ã¨ããè¿ã£ã¦ããã®ã§ã"darwin*"ã«ãããããã Vim Vimã§OSå¤å®ãããã«ã¯"system('uname')"ã使ãã ãªã®ã§OSæ¯ã«è¨å®ãåãåããã«ã¯ let OSTYPE = system('uname') if OSTYPE == "Darwin\n" ""ããã«Macåãã®è¨å® elseif OSTYPE == "Linux\n" ""ããã«Linuxåãã®è¨å® endifå¤ã¯ã·ã§ã«ã§"unam
{{#tags}}- {{label}}
{{/tags}}