https://github.com/laggardkernel/zsh-iterm2
Pack iTerm2 shell integration scripts as a ZSH plugin
https://github.com/laggardkernel/zsh-iterm2
Last synced: 7 months ago
JSON representation
Pack iTerm2 shell integration scripts as a ZSH plugin
- Host: GitHub
- URL: https://github.com/laggardkernel/zsh-iterm2
- Owner: laggardkernel
- License: gpl-2.0
- Created: 2019-04-28T14:40:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T01:51:44.000Z (over 5 years ago)
- Last Synced: 2024-11-11T23:37:38.311Z (about 1 year ago)
- Language: Shell
- Size: 32.2 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - iterm2 - Packs iTerm 2's ZSH integration scripts into a ZSH plugin to avoid polluting your $HOME directory, with a negligible time increase of only 2ms. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - iterm2 - Packs iTerm 2's ZSH integration scripts into a ZSH plugin to avoid polluting your $HOME directory, with a negligible time increase of only 2ms. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - iterm2 - Packs iTerm's ZSH integration scripts into a ZSH plugin to avoid polluting your $HOME directory, with a negligible time increase of only 2ms. (Plugins / Zinit (née zplugin))
README
# ZSH-iTerm2
[![License: GPL-2.0][license icon]][license]
Pack iTerm's ZSH integration scripts into a ZSH plugin, avoid polluting your
`$HOME` directory, with negligible time increase of 2ms.
## Installation
### [zplugin][zplugin]
The only ZSH plugin manager solves the time-consuming init for `nvm`, `nodenv`, `pyenv`, `rvm`, `rbenv`, `thefuck`, `fasd`, etc, with its amazing async [Turbo Mode][turbo mode].
```zsh
zplugin ice pick'init.zsh' compile'*.zsh'
zplugin light laggardkernel/zsh-iterm2
```
### [prezto][prezto]
The only framework does **optimizations** in plugins with sophisticated coding skill:
- [refreshing `.zcompdump` every 20h][prezto zcompdump 1]
- [compiling `.zcompdump` as bytecode in the background][prezto zcompdump 2]
- [caching init script for fasd][prezto fasd]
- saving `*env` startup time with [`init - --no-rehash` for `rbenv`, `pyenv`, `nodenv`][prezto *env]
- [removing the horribly time-consuming `brew command` from `command-not-found`][prezto brew command]
```zsh
mkdir -p ${ZDOTDIR:-$HOME}/.zprezto/contrib &>/dev/null
git clone https://github.com/laggardkernel/zsh-iterm2.git ${ZDOTDIR:-$HOME}/.zprezto/contrib/zsh-iterm2
```
## License
The GPL-2.0-only License
Copyright (c) 2019 laggardkernel
[license icon]: https://img.shields.io/badge/License-GPL--2.0-blue.svg
[license]: https://opensource.org/licenses/GPL-2.0
[zplugin]: https://github.com/zdharma/zplugin
[turbo mode]: https://github.com/zdharma/zplugin#turbo-mode-zsh--53
[prezto]: https://github.com/sorin-ionescu/prezto
[prezto zcompdump 1]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/completion/init.zsh#L31-L41
[prezto zcompdump 2]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/runcoms/zlogin#L9-L15
[prezto fasd]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/fasd/init.zsh#L22-L36
[prezto *env]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/python/init.zsh#L22
[prezto brew command]: https://github.com/sorin-ionescu/prezto/blob/4abbc5572149baa6a5e7e38393a4b2006f01024f/modules/command-not-found/init.zsh