{"id":4453,"date":"2019-04-13T10:48:05","date_gmt":"2019-04-13T08:48:05","guid":{"rendered":"http:\/\/blog.via-internet.de\/?p=4453"},"modified":"2019-04-13T10:48:05","modified_gmt":"2019-04-13T08:48:05","slug":"zsh-cookbook","status":"publish","type":"post","link":"https:\/\/via-internet.de\/blog\/2019\/04\/13\/zsh-cookbook\/","title":{"rendered":"Zsh | Cookbook"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Useful tips<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Speed-up zsh start<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on the way, you install zsh, the installation process clones git-repositories to your home folder $HOME.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Starting zsh does at one point check files git &#8216;git ls-files&#8217;. So, if you have a lot of files and folders in your home directory, this will take some time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to speedup the start, create a .gitignore file in your home an include all files with not relations to zsh, e.g. .npm, .ssh or .Trash.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Customize Zsh Prompt<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Powerlevel9k<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Installation on mac OS<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Install<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ brew tap sambadevi\/powerlevel9k\n$ brew install powerlevel9k<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add Themes to .zshrc<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">. \/usr\/local\/opt\/powerlevel9k\/powerlevel9k.zsh-theme<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Install on macx OS to use in Oh-My-Zsh<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To install this theme for use in&nbsp;<a href=\"https:\/\/github.com\/robbyrussell\/oh-my-zsh\">Oh-My-Zsh<\/a>, clone this repository into your OMZ&nbsp;<code>custom\/themes<\/code>directory.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ git clone https:\/\/github.com\/bhilburn\/powerlevel9k.git ~\/.oh-my-zsh\/custom\/themes\/powerlevel9k<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You then need to select this theme in your&nbsp;<code>~\/.zshrc<\/code>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ZSH_THEME=\"powerlevel9k\/powerlevel9k\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Links and Resources<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/medium.com\/the-code-review\/make-your-terminal-more-colourful-and-productive-with-iterm2-and-zsh-11b91607b98c\">Zsh with Powerlevel9K\u200a\u2014\u200aPower up your terminal\u2018s colour scheme and productivity level<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Useful tips Speed-up zsh start Depending on the way, you install zsh, the installation process clones git-repositories to your home folder $HOME. Starting zsh does at one point check files git &#8216;git ls-files&#8217;. So, if you have a lot of files and folders in your home directory, this will take some time. If you want to speedup the start, create a .gitignore file in your home an include all files with not relations to zsh, e.g. .npm, .ssh or .Trash. Customize Zsh Prompt Powerlevel9k Installation on mac OS Install Add Themes to .zshrc Install on macx OS to use in Oh-My-Zsh [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16,72],"tags":[],"class_list":["post-4453","post","type-post","status-publish","format-standard","hentry","category-cookbook","category-shell"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/4453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/comments?post=4453"}],"version-history":[{"count":0,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/4453\/revisions"}],"wp:attachment":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/media?parent=4453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/categories?post=4453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/tags?post=4453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}