diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..69c066b --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +https://wfxr.mit-license.org/2017 diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index 346d52a..0000000 --- a/LICENSE.txt +++ /dev/null @@ -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. diff --git a/README.md b/README.md index 0835779..f2e491f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index b45dcba..4b4a4c4 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -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