# History options {{{
setopt APPEND_HISTORY SHARE_HISTORY INC_APPEND_HISTORY HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
-HISTORY_IGNORE="(yt* *|t *|t|mmfileget *|arr|rss)"
+HISTORY_IGNORE="(yt* *|t *|t|sdcv *|mmfileget *|arr)"
# }}}
# Vi mode {{{
alias -g W="| wc -l"
alias mc="mc --nomouse"
alias sent="mutt -f =sent-\`date '+%y-%m'\`"
-alias zc="rlwrap -S '> ' dc"
+alias zc=~/bin/dc-wrapped.sh
f() {
# find . -name "*$1*" -print
alias Gm="git diff --name-only --diff-filter=M"
alias Gam="git commit --amend"
-git_common="--oneline --abbrev-commit"
-alias Gl="git log $git_common --graph --decorate=short"
-alias Gr="git --no-pager log $git_common -n 20 | perl -ne 'print \"@~\$n \$_\"; \$n++'"
-alias Grr="git --no-pager log $git_common --graph -n 1024 | vi -c 'setlocal filetype=gitrebase buftype=nofile noswapfile' -"
+alias Gl="git log --oneline --graph --decorate=short"
+alias Gld="git log --format=format:'%ai %Cgreen%h%Creset %s'"
+alias Gr="git --no-pager log --oneline -n 20 | perl -ne 'print \"@~\$n \$_\"; \$n++'"
+alias Grr="git --no-pager log --oneline --graph -n 1024 | vi -c 'setlocal filetype=gitrebase buftype=nofile noswapfile' -"
bindkey -s "\eOR" " git status --short\n" # F3
# }}}
~/mail/arbeit"?Neue Nachrichten in =arbeit"
)
alias arr="mutt -f \=arbeit -e 'source ~/.mutt/accounts/stcnet.ru'"
-alias rss="mutt -f \=rss"
bindkey -s "\eOP" " inc\n" # F1
# }}}
. ~/work/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=cyan"
# }}}
+
+# fzf {{{
+alias -g PE="| pe"
+
+export FZF_DEFAULT_OPTS="--color=16 --info=inline --preview='less -N -S {}'"
+
+_fzf_find() {
+ find . \( -path "*/\.git" -o -fstype devfs -o -fstype procfs \) -prune \
+ -o -type d -print $@ 2>/dev/null | cut -b3-
+}
+
+export FZF_CTRL_T_COMMAND="_fzf_find -o -type f -print -o -type l -print"
+export FZF_ALT_C_COMMAND=_fzf_find
+
+. ~/work/fzf/shell/key-bindings.zsh
+# }}}