{"id":165,"date":"2019-05-18T10:02:01","date_gmt":"2019-05-18T01:02:01","guid":{"rendered":"https:\/\/blog.hgrs.me\/?p=165"},"modified":"2020-05-12T21:19:41","modified_gmt":"2020-05-12T12:19:41","slug":"macos%e3%81%a7z-shell%ef%bc%88zsh%ef%bc%89%e3%80%81prezto%e3%82%92%e4%bd%bf%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.hgrs.me\/archives\/165.html","title":{"rendered":"macOS\u3067Z shell\uff08zsh\uff09\u3068Prezto\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"
\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u7cfb\u306e\u8a71\u3067\u3059\u3002<\/p>\n
\u524d\u306b\u3082\u66f8\u3044\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u50d5\u306fGUI\u304c\u597d\u304d\u3067CUI\u306f\u3042\u307e\u308a\u597d\u304d\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u73fe\u72b6\u4f7f\u308f\u3056\u308b\u3092\u5f97\u306a\u3044\u72b6\u6cc1\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n
\u3069\u3046\u305b\u4f7f\u3046\u306a\u3089\u4f7f\u3044\u3084\u3059\u304f\u3057\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u50d5\u306e\u4f7f\u3063\u3066\u308b\u74b0\u5883\u69cb\u7bc9\u3092\u6652\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
\u6700\u65b0\u306ezsh\u3092\u5165\u308c\u308b\u305f\u3081\u306bHomebrew<\/a>\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002\u3059\u3067\u306b\u5165\u3063\u3066\u308b\u4eba\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n \u4ee5\u4e0b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9<\/p>\n \u307e\u305a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n \u6b21\u306b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fzsh\u3092\u30b7\u30a7\u30eb\u306e\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n \u3053\u3061\u3089\u306f \u6700\u5f8c\u306b\u30ed\u30b0\u30a4\u30f3\u30b7\u30a7\u30eb\u3092zsh\u306b\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n \u4ee5\u4e0a\u3067zsh\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u7d42\u308f\u308a\u3067\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u518d\u8d77\u52d5\u3059\u308b\u304b$ \/usr\/bin\/ruby -e "$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)"<\/code><\/pre>\n
zsh\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n
zsh\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n
$ brew install zsh<\/code><\/pre>\n
zsh\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/h3>\n
\/etc\/shells<\/code>\u306b
\/usr\/local\/bin\/zsh<\/code>\u3092\u66f8\u304d\u52a0\u3048\u307e\u3059\u3002\u597d\u304d\u306a\u30a8\u30c7\u30a3\u30bf\u3067\u66f8\u304d\u8fbc\u3093\u3067\u3082\u826f\u3044\u3067\u3059\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3082\u66f8\u304d\u52a0\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n
$ echo \/usr\/local\/bin\/zsh | sudo tee -a \/etc\/shells<\/code><\/pre>\n
\u30ed\u30b0\u30a4\u30f3\u30b7\u30a7\u30eb\u3092zsh\u306b\u5909\u66f4<\/h3>\n
$ chsh -s \/usr\/local\/bin\/zsh<\/code><\/pre>\n
zsh<\/code>\u3068\u3059\u308c\u3070\u3001zsh\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n
Prezto\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n
Prezto\u3068\u306f<\/h3>\n