summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc16
1 files changed, 15 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index 43a2c02..cfbc5a2 100644
--- a/zshrc
+++ b/zshrc
@@ -93,7 +93,6 @@ bindkey -a 'j' history-beginning-search-forward
crontab ~/.crontab
TERM=xterm-256color
-source ~/github/fzf-marks/fzf-marks.zsh
fancy-ctrl-z () {
@@ -107,4 +106,19 @@ fancy-ctrl-z () {
}
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z
+
+fshow() {
+ git log --graph --color=always \
+ --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" |
+ fzf --ansi --no-sort --reverse --tiebreak=index --toggle-sort=\` \
+ --bind 'ctrl-m:execute:
+ echo {} | grep -o "[a-f0-9]\{7\}" |
+ xargs -I % sh -c "git show --color=always % | less -R"'
+}
+
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
+source ~/github/fzf-marks/fzf-marks.zsh
+source ~/github/z/z.sh
+source ~/github/fzf-extras/fzf-extras.sh
+source ~/github/fzf-extras/fzf-extras.zsh
+xrdb ~/.Xressources