{"id":29995,"date":"2020-03-06T16:30:49","date_gmt":"2020-03-06T08:30:49","guid":{"rendered":"\/blog\/?p=29995"},"modified":"2020-03-06T16:30:51","modified_gmt":"2020-03-06T08:30:51","slug":"prettify-raspberry-pi-shell-with-oh-my-zsh","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/","title":{"rendered":"Prettify Raspberry Pi shell with oh my zsh"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1030\" height=\"608\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png\" alt=\"\" class=\"wp-image-29996\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-300x177.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-768x453.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1024x605.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37.png 1094w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure>\n\n\n\n<p>Although the Raspbian OS provides users with a nice GUI,  I still prefer using shell to complete most of my tasks. However, the built in terminal, based on bash, is a little bit boring and ugly. So I decide to use oh-my-zsh to make it look cool and fun.<\/p>\n\n\n\n<p>Firstly, you have to install zsh to replace bash.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install zsh<\/code><\/pre>\n\n\n\n<p> Then set zsh as default shell <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chsh -s \/bin\/zsh <\/code><\/pre>\n\n\n\n<p>But by now, the shell terminal still looks not cool. Let&#8217;s use oh-my-zsh to prettify it. Firstly, install it from GitHub through wget<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sh -c \"$(wget https:\/\/raw.githubusercontent.com\/robbyrussell\/oh-my-zsh\/master\/tools\/install.sh -O -)\"<\/code><\/pre>\n\n\n\n<p>Now restart the terminal you&#8217;ll see something different, something much cooler than the original bash shell. You can also switch to other themes according to the official zsh instructions <a href=\"https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes\">here<\/a>.<\/p>\n\n\n\n<p>As for me, I&#8217;m using the &#8220;Agnoster&#8221; theme so I can see Git Status. And this is not enough. Let&#8217;s make the zsh shell more developer friendly with auto-suggestion and syntax highlights.<\/p>\n\n\n\n<p>Firstly, install the plugins under zsh plugin folder.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone git:\/\/github.com\/zsh-users\/zsh-autosuggestions $ZSH_CUSTOM\/plugins\/zsh-autosuggestions<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/zsh-users\/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~\/.oh-my-zsh\/custom}\/plugins\/zsh-syntax-highlighting\n<\/code><\/pre>\n\n\n\n<p>Then add it into your .zshrc file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim ~\/.zshrc\nplugins=(git zsh-autosuggestions autojump zsh-syntax-highlighting)<\/code><\/pre>\n\n\n\n<p>Now restart the terminal and enjoy coding with shell!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although the Raspbian OS provides users with a nice GUI, I still prefer using shell<\/p>\n","protected":false},"author":3485,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[247],"class_list":["post-29995","post","type-post","status-publish","format-standard","hentry","category-news","tag-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prettify Raspberry Pi shell with oh my zsh - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prettify Raspberry Pi shell with oh my zsh - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"Although the Raspbian OS provides users with a nice GUI, I still prefer using shell\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-06T08:30:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-06T08:30:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png\" \/>\n<meta name=\"author\" content=\"ericyu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ericyu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/\",\"name\":\"Prettify Raspberry Pi shell with oh my zsh - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png\",\"datePublished\":\"2020-03-06T08:30:49+00:00\",\"dateModified\":\"2020-03-06T08:30:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/c1f0264a6ad9ba995b2367e06fd70ec9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#primaryimage\",\"url\":\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png\",\"contentUrl\":\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prettify Raspberry Pi shell with oh my zsh\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/c1f0264a6ad9ba995b2367e06fd70ec9\",\"name\":\"ericyu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eb22f677db332dc286108258a6b7f324?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eb22f677db332dc286108258a6b7f324?s=96&r=g\",\"caption\":\"ericyu\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/ericyu\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prettify Raspberry Pi shell with oh my zsh - Latest News from Seeed Studio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/","og_locale":"en_US","og_type":"article","og_title":"Prettify Raspberry Pi shell with oh my zsh - Latest News from Seeed Studio","og_description":"Although the Raspbian OS provides users with a nice GUI, I still prefer using shell","og_url":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2020-03-06T08:30:49+00:00","article_modified_time":"2020-03-06T08:30:51+00:00","og_image":[{"url":"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png","type":"","width":"","height":""}],"author":"ericyu","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ericyu","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/","url":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/","name":"Prettify Raspberry Pi shell with oh my zsh - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png","datePublished":"2020-03-06T08:30:49+00:00","dateModified":"2020-03-06T08:30:51+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/c1f0264a6ad9ba995b2367e06fd70ec9"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#primaryimage","url":"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png","contentUrl":"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-06-at-16.29.37-1030x608.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/03\/06\/prettify-raspberry-pi-shell-with-oh-my-zsh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Prettify Raspberry Pi shell with oh my zsh"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/c1f0264a6ad9ba995b2367e06fd70ec9","name":"ericyu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eb22f677db332dc286108258a6b7f324?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eb22f677db332dc286108258a6b7f324?s=96&r=g","caption":"ericyu"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/ericyu\/"}]}},"modified_by":"ericyu","views":28551,"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","visody_icon":"","magazine-7-slider-full":"","magazine-7-slider-center":"","magazine-7-featured":"","magazine-7-medium":"","magazine-7-medium-square":""},"author_info":{"display_name":"ericyu","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/ericyu\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/29995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/3485"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=29995"}],"version-history":[{"count":2,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/29995\/revisions"}],"predecessor-version":[{"id":33262,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/29995\/revisions\/33262"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=29995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=29995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=29995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}