Clean up.

This commit is contained in:
Wenxuan 2019-01-22 11:25:38 +08:00
parent ebd667ad84
commit ee79b779fd
4 changed files with 5 additions and 26 deletions

1
LICENSE Normal file
View file

@ -0,0 +1 @@
https://wfxr.mit-license.org/2017

View file

@ -1,19 +0,0 @@
Copyright (C) 2019 by Wenxuan-Zhang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View file

@ -1,6 +1,6 @@
# forgit
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://wfxr.mit-license.org/2017)
`forgit` is a utility tool for git taking advantage of fuzzy finder fzf.
@ -10,7 +10,7 @@
### Try Online
Run following command in your shell to try it without installing(for both `bash` and `zsh`):
Run following command in your shell to try `forgit` without installing(for both `bash` and `zsh`):
``` bash
source <(curl -Ss https://raw.githubusercontent.com/wfxr/forgit/master/forgit.plugin.zsh)
```
@ -128,8 +128,6 @@ FORGIT_FZF_DEFAULT_OPTS="
- Commands like `glo`, `gd`, `gcf` and `gclean` accept path arguments to restrain the items listed in fzf(eg, `glo main.go test.go`, `gclean output/`).
- Call `gi` with arguments to get the wanted `.gitignore` contents directly(eg, `gi cmake c++`).
## [License](LICENSE.txt)
## License
The MIT License (MIT)
Copyright (c) 2018 Wenxuan Zhang
[MIT](https://wfxr.mit-license.org/2017) (c) Wenxuan Zhang

View file

@ -110,7 +110,6 @@ forgit::ignore() {
[ -d $FORGIT_GI_REPO ] || forgit::ignore::update
local IFS cmd args cat
# https://github.com/wfxr/emoji-cli
# hash bat &>/dev/null && cat='bat -l gitignore --color=always --style=numbers,grid' || cat="cat"
hash bat &>/dev/null && cat='bat -l gitignore --color=always' || cat="cat"
cmd="$cat $FORGIT_GI_SRC/{2}{,.gitignore} 2>/dev/null"
# shellcheck disable=SC2206,2207