Skip to content

Commit

Permalink
✨ 🚨 add zsh-tgswitch support + fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ptavares committed Oct 10, 2021
1 parent 476de48 commit adab033
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@
- 📝 add z plugin [[02d61ef](https://github.com/ptavares/zsh-auto-update-plugins/commit/02d61ef89b95062a887ef3ec7e6d16efbc013c19)]
- 📝 add licence badge [[263f2ee](https://github.com/ptavares/zsh-auto-update-plugins/commit/263f2eef0019a4bc5f8fb8dd929835934e926506)]
- 📝 update documentation [[f59683d](https://github.com/ptavares/zsh-auto-update-plugins/commit/f59683d5edc81ad2c13f3435119cd7b7323282e4)]


4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ The following is a set of guidelines for contributing to **zsh-auto-update-plugi

- [Contributing](#contributing)
- [Table of Content](#table-of-content)
- [Developers Information](#developers-information)
- [Tools used](#tools-used)
- [Pre-commit](#pre-commit)
- [Makefile Usage](#makefile-usage)
- [Makefile](#makefile)
- [Styleguides](#styleguides)
- [Git Commit Messages](#git-commit-messages)
- [Changelog](#changelog)
- [Documentation Styleguide](#documentation-styleguide)

<!--TOC-->
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ INFO_TARGETS := version .do-version check-status .do-check-status
PRECOMMIT_TARGETS := precommit do-precommit
HELP_TARGETS := help .do-help

.PHONY: $(BUILD_TARGETS) $(RELEASE_TARGETS) $(INFO_TARGETS) $(PRECOMMIT_TARGETS) $(HELP_TARGETS)
.PHONY: $(BUILD_TARGETS) $(RELEASE_TARGETS) $(INFO_TARGETS) $(PRECOMMIT_TARGETS) $(HELP_TARGETS)
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ export ZSH_AUTOUPDATE_IGNORE_Z=true
* Disable `tfswith` auto-update from [zsh-tfswitch](https://github.com/ptavares/zsh-tfswitch) plugin

```shell script
export ZSH_AUTOUPDATE_IGNORE_Z=true
export ZSH_AUTOUPDATE_IGNORE_TFSWITCH=true
```

* Disable `tgswith` auto-update from [zsh-tgswitch](https://github.com/ptavares/zsh-tgswitch) plugin

```shell script
export ZSH_AUTOUPDATE_IGNORE_TGSWITCH=true
```

### Silent Mode
Expand Down
3 changes: 3 additions & 0 deletions zsh-auto-update-plugins.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function upgrade_oh_my_zsh_custom() {
if [[ -z "$ZSH_AUTOUPDATE_IGNORE_TFSWITCH" ]] || [[ -z "$ZSH_AUTOUPDATE_IGNORE_ALL" ]]; then
type update_zsh_tfswitch &>/dev/null && update_zsh_tfswitch || _zsh_auto_update_log $NONE "blue" "-> tfswitch plugin will not be updated"
fi
if [[ -z "$ZSH_AUTOUPDATE_IGNORE_TGSWITCH" ]] || [[ -z "$ZSH_AUTOUPDATE_IGNORE_ALL" ]]; then
type update_zsh_tgswitch &>/dev/null && update_zsh_tgswitch || _zsh_auto_update_log $NONE "blue" "-> tgswitch plugin will not be updated"
fi

if [[ -z "$ZSH_AUTOUPDATE_PLUGINS_SILENT" ]]; then
_zsh_auto_update_log $NONE "blue" "#############################################"
Expand Down

0 comments on commit adab033

Please sign in to comment.