From 99b3c66cd6918ecce3af2f2d173d9d3d5abebfec Mon Sep 17 00:00:00 2001 From: Wenxuan Date: Fri, 18 Jan 2019 17:38:17 +0800 Subject: [PATCH] Update README --- README.md | 12 +++++++++--- forgit.plugin.zsh | 1 - 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dc83010..d1e38e7 100644 --- a/README.md +++ b/README.md @@ -115,13 +115,19 @@ FORGIT_FZF_DEFAULT_OPTS=" --height '80%' " ``` +## Enhancements -### Tips +- [`diff-so-fancy`](https://github.com/so-fancy/diff-so-fancy): Improve `git diff` output. + +- [`bat`](https://github.com/sharkdp/bat.git): Highlight support for `gitignore`. + +- [`emoji-cli`](https://github.com/wfxr/emoji-cli): Emoji support for `git log`. + +## Tips - Hit `q` to quit from full screen preview any time. -- Install [`diff-so-fancy`](https://github.com/so-fancy/diff-so-fancy) to have better `diff` output. - 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 wanted `.gitignore` contents directly(eg, `gi c++`). +- Call `gi` with arguments to get the wanted `.gitignore` contents directly(eg, `gi cmake c++`). ## [License](LICENSE.txt) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 1ac02df..ec6821d 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -28,7 +28,6 @@ forgit::inside_work_tree() { git rev-parse --is-inside-work-tree >/dev/null; } hash diff-so-fancy &>/dev/null && forgit_fancy='|diff-so-fancy' # https://github.com/wfxr/emoji-cli hash emojify &>/dev/null && forgit_emojify='|emojify' -hash bat &>/dev/null && forgit_ignore_highlighter='|bat -l gitignore --style=numbers,grid' # git commit viewer forgit::log() {