mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
parent
9ac4add6e1
commit
ff58ec2900
19
LICENSE.txt
19
LICENSE.txt
|
|
@ -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.
|
||||
10
README.md
10
README.md
|
|
@ -1,6 +1,6 @@
|
|||
# forgit
|
||||
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue