m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 17:13:42 -05:00

fix conflict of fc with fcs

Raine Virta
2015-05-10 19:23:52 +03:00
parent 1a28321439
commit 42f43d0183

@@ -181,9 +181,9 @@ fshow() {
``` ```
```sh ```sh
# fc - get git commit sha # fcs - get git commit sha
# example usage: git rebase -i `fc` # example usage: git rebase -i `fcs`
fc() { fcs() {
local commits commit local commits commit
commits=$(git log --color=always --pretty=oneline --abbrev-commit --reverse) && commits=$(git log --color=always --pretty=oneline --abbrev-commit --reverse) &&
commit=$(echo "$commits" | fzf --tac +s +m -e --ansi --reverse) && commit=$(echo "$commits" | fzf --tac +s +m -e --ansi --reverse) &&