From 941a08075fa2093cf008954d82787e302210a418 Mon Sep 17 00:00:00 2001 From: Sadbeast Date: Fri, 9 Jul 2021 14:32:43 -0500 Subject: add starship, add ripgrep and bat to fzf --- .zshrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index dd22a96..62b3f8b 100644 --- a/.zshrc +++ b/.zshrc @@ -1,6 +1,6 @@ # antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh - -export PATH=$PATH:~/bin:$HOME/.cargo/bin +export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" +export PATH="$PATH:~/bin:$HOME/.cargo/bin:$GEM_HOME/bin" autoload -Uz compinit typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null) @@ -35,8 +35,10 @@ bindkey '^[3;5~' delete-char export NVM_LAZY_LOAD=true export NVM_LAZY_LOAD_EXTRA_COMMANDS=('vim') -export FZF_DEFAULT_COMMAND='fd --type file' + +export FZF_DEFAULT_COMMAND='rg --files' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" +export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=numbers --line-range=:500 {}'" export GPG_TTY=$(tty) @@ -57,3 +59,5 @@ eval $(keychain --eval --quiet id_rsa) case $(uname -a) in *Microsoft*) unsetopt BG_NICE ;; esac + +eval "$(starship init zsh)" -- cgit v1.2.3