Forked from ganapativs/iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup.md
Created
February 10, 2019 20:39
-
-
Save gsig123/c735b5ab5086eadf0e96e458a1a9a6a2 to your computer and use it in GitHub Desktop.
Revisions
-
ganapativs revised this gist
Aug 4, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ npm install --global pure-prompt autoload -U promptinit; promptinit prompt pure ``` - Install awesome `z` tool for autojumping between recent folders(Check usage here - https://github.com/rupa/z/) - Use brew `brew install z` (This should take care of everything for you) - Or to setup manually, Download 'z' from https://github.com/rupa/z/blob/master/z.sh and move to `~/` and add following snippet to `~/.zshrc` ```sh -
ganapativs renamed this gist
Aug 3, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,11 +43,11 @@ pip install pygments # OR pip3.6 install pygments ``` - Install `trash` command as safter alternative for `rm` command ```sh npm install --global trash-cli trash ./folder/file.txt # Should move to trash instead of permanently deleting it ``` - Finally update plugins list for oh-my-zsh in `~/.zshrc` ```sh -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,6 +43,12 @@ pip install pygments # OR pip3.6 install pygments ``` - Install `trash` command(Move deleted files/folders to trash instead of permanently deleting it) as safter alternative for `rm` command ```sh npm install --global trash-cli trash folder/file.txt ``` - Finally update plugins list for oh-my-zsh in `~/.zshrc` ```sh # .zshrc @@ -63,12 +69,6 @@ plugins=( zsh-autosuggestions ) ``` Useful links: - https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -63,6 +63,12 @@ plugins=( zsh-autosuggestions ) ``` - Install `trash` command(Move deleted files/folders to trash instead of permanently deleting it) as safter alternative for `rm` command ```sh npm install --global trash-cli trash folder/file.txt ``` Useful links: - https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,8 +22,7 @@ prompt pure ``` - Install `z` for autojumping between recent folders(Check usage here - https://github.com/rupa/z/) - Use brew `brew install z` (This should take care of everything for you) - Or to setup manually, Download 'z' from https://github.com/rupa/z/blob/master/z.sh and move to `~/` and add following snippet to `~/.zshrc` ```sh # .zshrc # include Z, yo -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,10 @@ npm install --global pure-prompt autoload -U promptinit; promptinit prompt pure ``` - Install `z` for autojumping between recent folders(Check usage here - https://github.com/rupa/z/) - Use brew `brew install z` (This should take care of everything for you) OR - Download 'z' from https://github.com/rupa/z/blob/master/z.sh and move to `~/` and add following snippet to `~/.zshrc` ```sh # .zshrc # include Z, yo -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -48,7 +48,6 @@ plugins=( git brew common-aliases node npm rand-quote -
ganapativs renamed this gist
Aug 3, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM: ```sh git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions ``` - Install `pygments` package, a pre-requisite for `colorize` plugin(`cat` with syntax highlight support, alias `ccat`) ```sh pip install pygments -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM: ```sh git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions ``` - Install `pygments` package, a pre-requisite for `colorize` plugin(`cat` with syntax highlight support) ```sh pip install pygments -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,13 @@ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM: ```sh git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions ``` - Install `pygments` package, a pre-requisite for `colorize` plugin(cat with syntax highlight support) ```sh pip install pygments # OR pip3.6 install pygments ``` - Finally update plugins list for oh-my-zsh in `~/.zshrc` ```sh # .zshrc @@ -48,12 +55,16 @@ plugins=( sudo yarn z colored-man-pages colorize cp zsh-syntax-highlighting zsh-autosuggestions ) ``` Useful links: - https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview - https://commandlinepoweruser.com/ - https://medium.freecodecamp.org/jazz-up-your-zsh-terminal-in-seven-steps-a-visual-guide-e81a8fd59a38 - https://hackernoon.com/oh-my-zsh-made-for-cli-lovers-bea538d42ec1 -
ganapativs revised this gist
Aug 3, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ - Install iTerm2 from https://www.iterm2.com/ - Install oh-my-zsh from https://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh - Set iTerm2 theme tab theme to Dark - `Preferences | Appearance | Tabs | Theme > Dark` - Install Fira Code fonts from https://github.com/tonsky/FiraCode (Clone and navigate to `dstr > ttf`, install all font files by double clicking) - Install Powerline fonts from https://github.com/powerline/fonts - Set fonts for iTerm2 - `Preferences | Profiles | Text` - Change `Font` to `14pt Fira code regular` and Check `Use Ligatures` checkbox -
ganapativs created this gist
Aug 3, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,60 @@ - Install iTerm2 from https://www.iterm2.com/ - Install oh-my-zsh from https://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh - Set iTerm2 theme tab theme to Dark - `Preferences | Appearance | Tabs | Theme > Dark` - Install Fira Code fonts from https://github.com/tonsky/FiraCode (Font files in `dstr > ttf`) - Install Powerline fonts from https://github.com/powerline/fonts - Set fonts for iTerm2 - `Preferences | Profiles | Text` - Change `Font` to `14pt Fira code regular` and Check `Use Ligatures` checkbox - Change `Non ASCII Font` to `14pt Fira mono` and Check `Use Ligatures` checkbox - Install iTerm2 snazzy theme from https://github.com/sindresorhus/iterm2-snazzy - Navigate to `Preferences | Profiles | Color Presets > Snazzy` - Install Pure prompt for iTerm2 from https://github.com/sindresorhus/pure#oh-my-zsh ```sh # .zshrc ZSH_THEME="" npm install --global pure-prompt # oh-my-zsh overrides the prompt, so Pure must be activated after `source $ZSH/oh-my-zsh.sh` # .zshrc autoload -U promptinit; promptinit prompt pure ``` - Download 'z' from https://github.com/rupa/z/blob/master/z.sh and move to `~/` and add following snippet to `~/.zshrc` ```sh # .zshrc # include Z, yo . ~/z.sh ``` - Install `zsh-syntax-highlighting` oh-my-zsh plugin ```sh git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ``` - Install `zsh-autosuggestions` oh-my-zsh plugin ```sh git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions ``` - Finally update plugins list for oh-my-zsh in `~/.zshrc` ```sh # .zshrc plugins=( git brew common-aliases lol node npm rand-quote sudo yarn z zsh-syntax-highlighting zsh-autosuggestions ) ``` Useful links: - https://commandlinepoweruser.com/ - https://medium.freecodecamp.org/jazz-up-your-zsh-terminal-in-seven-steps-a-visual-guide-e81a8fd59a38 - https://hackernoon.com/oh-my-zsh-made-for-cli-lovers-bea538d42ec1 - https://www.smashingmagazine.com/2015/07/become-command-line-power-user-oh-my-zsh-z/