Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gsig123/c735b5ab5086eadf0e96e458a1a9a6a2 to your computer and use it in GitHub Desktop.
Save gsig123/c735b5ab5086eadf0e96e458a1a9a6a2 to your computer and use it in GitHub Desktop.

Revisions

  1. @ganapativs ganapativs revised this gist Aug 4, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup.md
    Original 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 `z` for autojumping between recent folders(Check usage here - https://github.com/rupa/z/)
    - 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
  2. @ganapativs ganapativs renamed this gist Aug 3, 2018. 1 changed file with 0 additions and 0 deletions.
  3. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions iTerm2 + oh-my-zsh + Pure theme + plugins setup.md
    Original file line number Diff line number Diff line change
    @@ -43,11 +43,11 @@ 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
    - Install `trash` command as safter alternative for `rm` command
    ```sh
    npm install --global trash-cli

    trash folder/file.txt
    trash ./folder/file.txt # Should move to trash instead of permanently deleting it
    ```
    - Finally update plugins list for oh-my-zsh in `~/.zshrc`
    ```sh
  4. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions iTerm2 + oh-my-zsh + Pure theme + plugins setup.md
    Original 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
    )
    ```
    - 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
  5. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions iTerm2 + oh-my-zsh + Pure theme + plugins setup.md
    Original 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
  6. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions iTerm2 + oh-my-zsh + Pure theme + plugins setup.md
    Original 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
    - Download 'z' from https://github.com/rupa/z/blob/master/z.sh and move to `~/` and add following snippet to `~/.zshrc`
    - 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
  7. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion iTerm2 + oh-my-zsh + Pure theme + plugins setup.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,10 @@ npm install --global pure-prompt
    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`
    - 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
  8. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion iTerm2 + oh-my-zsh + Pure theme + plugins setup.md
    Original file line number Diff line number Diff line change
    @@ -48,7 +48,6 @@ plugins=(
    git
    brew
    common-aliases
    lol
    node
    npm
    rand-quote
  9. @ganapativs ganapativs renamed this gist Aug 3, 2018. 1 changed file with 0 additions and 0 deletions.
  10. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iTerm2 + oh-my-zsh + Pure theme setup.md
    Original 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)
    - Install `pygments` package, a pre-requisite for `colorize` plugin(`cat` with syntax highlight support, alias `ccat`)
    ```sh
    pip install pygments

  11. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iTerm2 + oh-my-zsh + Pure theme setup.md
    Original 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)
    - Install `pygments` package, a pre-requisite for `colorize` plugin(`cat` with syntax highlight support)
    ```sh
    pip install pygments

  12. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions iTerm2 + oh-my-zsh + Pure theme setup.md
    Original 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
  13. @ganapativs ganapativs revised this gist Aug 3, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iTerm2 + oh-my-zsh + Pure theme setup.md
    Original 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 (Font files in `dstr > ttf`)
    - 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
  14. @ganapativs ganapativs created this gist Aug 3, 2018.
    60 changes: 60 additions & 0 deletions iTerm2 + oh-my-zsh + Pure theme setup.md
    Original 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/