mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Add fgit command
This commit is contained in:
parent
c747c6381f
commit
be65b905f9
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ if command -v fzf 2>&1 >/dev/null; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fgit() {
|
||||||
|
git log --oneline --decorate --color | fzf --ansi --preview 'git show $(echo {} | cut -d" " -f1)'
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# vim: ft=bash
|
# vim: ft=bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue