ranger diff

This commit is contained in:
David Chen 2019-12-03 07:55:56 -08:00
parent 427b09c2d7
commit f7e33e917a
3 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,7 @@ This config folder includes `i3` and `alacritty` config, however, I'm using [dwm
# Important stuff:
## Ranger
use pip install `ueberzug` and `ranger-git`
use `pip install ueberzug` and `ranger-git`
## mutt
In `~/.gnupg/gpg-agent.conf`:

View file

@ -394,6 +394,9 @@ map y. yank name_without_extension
# Filesystem Operations
# diff
map df console open_with colordiff
map M console mkcd%space
map + chmod

View file

@ -83,9 +83,10 @@ zle -N zle-keymap-select
KEYTIMEOUT=1
# fzf
export FZF_DEFAULT_OPTS='--bind ctrl-e:down,ctrl-u:up --preview "[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (ccat --color=always {} || highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null | head -500"'
export FZF_DEFAULT_OPTS='--bind ctrl-e:down,ctrl-u:up --preview "[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (ccat --color=always {} || highlight -O ansi -l {} || cat {}) 2> /dev/null | head -500"'
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'
export FZF_COMPLETION_TRIGGER='\'
export FZF_TMUX_HEIGHT='80%'
export FZF_PREVIEW_COMMAND='[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (ccat --color=always {} || highlight -O ansi -l {} || cat {}) 2> /dev/null | head -500'
source ~/.config/zsh/key-bindings.zsh
source ~/.config/zsh/completion.zsh