Skip to content

Commit

Permalink
Merge pull request #4 from ik11235/feature/conf_disabled
Browse files Browse the repository at this point in the history
環境変数で無効化できるように
  • Loading branch information
ik11235 authored Mar 12, 2023
2 parents 3ccd5e5 + 6776a12 commit 8ac40da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Unofficial script for wakatime tracking in the fish shell.
- Use git information to determine project name.
- Can be installed as a [fisher](https://github.com/jorgebucaran/fisher) plugin.


## Getting Started

### Prerequisites
Expand All @@ -34,13 +33,22 @@ If it does not work, please refer to the [official documentation](https://github
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
```


### Installation

```fish
fisher install ik11235/wakatime.fish
```

### Disable by environment variable

If you want to disable this plugin temporarily,
or if you want to use a common config on multiple machines and disable it on only some machines,
set the following environment variables.

```bash
export FISH_WAKATIME_DISABLED=true
```

## Licence

[MIT](LICENSE)
4 changes: 4 additions & 0 deletions conf.d/wakatime.fish
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
###

function __register_wakatime_fish_before_exec -e fish_preexec
if set -q FISH_WAKATIME_DISABLED
return 0
end

set -l PLUGIN_NAME "ik11235/wakatime.fish"
set -l PLUGIN_VERSION "0.0.2"

Expand Down

0 comments on commit 8ac40da

Please sign in to comment.