Browse Source

Update fzf zshrc

ubuntu_ci
Ein Verne 4 years ago
parent
commit
a36582e9e4
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 3
      .zshrc
  2. 3
      Brewfile
  3. 4
      zsh/env.zsh

3
.zshrc

@ -154,7 +154,8 @@ alias adbcap="adb shell screencap -p"
# fzf config
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git --ignore .idea -l -g ""'
# export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git --ignore .idea -l -g ""'
export FZF_DEFAULT_COMMAND='fd --type f --hidden --exclude .git --exclude .idea ""'
#export FZF_DEFAULT_OPTS="--reverse --inline-info"
export FZF_DEFAULT_OPTS="--height 40% --layout=reverse --preview '(highlight -O ansi {} || cat {}) 2> /dev/null | head -500'"

3
Brewfile

@ -17,7 +17,10 @@ brew "zsh-completions"
brew "tmux"
brew "gnupg"
brew "gnupg2"
# https://github.com/junegunn/fzf
brew "fzf"
# https://github.com/ggreer/the_silver_searcher
brew "the_silver_searcher"
brew "hub"
brew "tmux"
brew "tree"

4
zsh/env.zsh

@ -33,6 +33,10 @@ if [[ -d "/usr/local/jdk1.8.0_131" ]]; then
fi
# export JAVA_HOME="$HOME/.jenv/versions/`jenv version-name`"
if [[ -d "~/.asdf/plugins/java/" ]]; then
. ~/.asdf/plugins/java/set-java-home.zsh
fi
# Maven
if [[ -d "/opt/maven" ]]; then
export M2_HOME=/opt/maven

Loading…
Cancel
Save