|
3 | 3 | zsh plugin for installing and loading [tgenv](https://github.com/cunymatthieu/tgenv.git)
|
4 | 4 | >Inpired by [zsh-pyenv](https://github.com/mattberther/zsh-pyenv)
|
5 | 5 |
|
| 6 | +## Table of content |
| 7 | + |
| 8 | +- [zsh-tgenv](#zsh-tgenv) |
| 9 | + - [Usage](#usage) |
| 10 | + - [Updating tgenv](#updating-tgenv) |
| 11 | + - [License](#license) |
| 12 | + |
6 | 13 | ## Usage
|
7 | 14 |
|
8 | 15 | Once the plugin installed, `tgenv` will be available
|
9 | 16 |
|
10 |
| -### Using [Antigen](https://github.com/zsh-users/antigen) |
| 17 | +- Using [Antigen](https://github.com/zsh-users/antigen) |
11 | 18 |
|
12 | 19 | Bundle `zsh-tgenv` in your `.zshrc`
|
13 | 20 |
|
14 |
| -``` |
| 21 | +```shell |
15 | 22 | antigen bundle ptavares/zsh-tgenv
|
16 | 23 | ```
|
17 | 24 |
|
18 |
| -### Using [zplug](https://github.com/b4b4r07/zplug) |
| 25 | +- Using [zplug](https://github.com/b4b4r07/zplug) |
19 | 26 |
|
20 | 27 | Load `zsh-tgenv` as a plugin in your `.zshrc`
|
21 | 28 |
|
22 |
| -``` |
| 29 | +```shell |
23 | 30 | zplug "ptavares/zsh-tgenv"
|
24 | 31 | ```
|
25 | 32 |
|
26 |
| -### Using [zgen](https://github.com/tarjoilija/zgen) |
| 33 | +- Using [zgen](https://github.com/tarjoilija/zgen) |
27 | 34 |
|
28 | 35 | Include the load command in your `.zshrc`
|
29 | 36 |
|
30 |
| -``` |
| 37 | +```shell |
31 | 38 | zget load ptavares/zsh-tgenv
|
32 | 39 | ```
|
33 | 40 |
|
34 |
| -### As an [Oh My ZSH!](https://github.com/robbyrussell/oh-my-zsh) custom plugin |
| 41 | +- As an [Oh My ZSH!](https://github.com/robbyrussell/oh-my-zsh) custom plugin |
35 | 42 |
|
36 | 43 | Clone `zsh-tgenv` into your custom plugins repo and load as a plugin in your `.zshrc`
|
37 | 44 |
|
38 | 45 | ```shell
|
39 |
| -git clone https://github.com/ptavares/zsh-tgenv ~/.oh-my-zsh/custom/plugins/zsh-tgenv |
| 46 | +git clone https://github.com/ptavares/zsh-tgenv.git ~/.oh-my-zsh/custom/plugins/zsh-tgenv |
40 | 47 | ```
|
41 | 48 |
|
42 |
| -``` |
| 49 | +```shell |
43 | 50 | plugins+=(zsh-tgenv)
|
44 | 51 | ```
|
45 | 52 |
|
46 | 53 | Keep in mind that plugins need to be added before `oh-my-zsh.sh` is sourced.
|
47 | 54 |
|
48 |
| -### Manually |
| 55 | +- Manually |
49 | 56 |
|
50 | 57 | Clone this repository somewhere (`~/.zsh-tgenv` for example) and source it in your `.zshrc`
|
51 | 58 |
|
52 | 59 | ```shell
|
53 | 60 | git clone https://github.com/ptavares/zsh-tgenv ~/.zsh-tgenv
|
54 | 61 | ```
|
55 | 62 |
|
| 63 | +```shell |
| 64 | +source ~/.zsh-tgenv/zsh-tgenv.plugin.zsh |
56 | 65 | ```
|
57 |
| -source ~/.zsh-tfenv/zsh-tfenv.plugin.zsh |
| 66 | + |
| 67 | +## Updating tgenv |
| 68 | + |
| 69 | +The plugin comes with a zsh function to update [tgenv](https://github.com/cunymatthieu/tgenv.git) manually |
| 70 | + |
| 71 | +```shell |
| 72 | +# From zsh shell |
| 73 | +update_zsh_tgenv |
58 | 74 | ```
|
59 | 75 |
|
60 |
| -### License |
| 76 | +## License |
61 | 77 |
|
62 | 78 | [MIT](LICENCE)
|
0 commit comments