From b2deb86a710f4e26ed1ecd8c119a61da361b5713 Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Sun, 19 Jan 2020 18:44:16 +0100 Subject: [PATCH] [.zshrc] Add -I to fd commands and add new alias mknamedvenv --- .zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 7270524..e4c881b 100644 --- a/.zshrc +++ b/.zshrc @@ -19,6 +19,7 @@ alias duh='du -sch .[!.]* *' alias gb="git checkout \$(git branch -vv | fzf +m | awk '{print \$1}')" alias open='xdg-open' alias yayU='yay -Suy --noconfirm' +alias mknamedvenv='mkvirtualenv $(basename $PWD) -r requirements.txt' ##### tilix ##### @@ -45,10 +46,10 @@ source /usr/share/fzf/key-bindings.zsh source /usr/share/fzf/completion.zsh fzf-file-widget-hidden () { - fd --type f --hidden --follow --exclude .git --exclude .cache | fzf + fd --type f --hidden -I --follow --exclude .git --exclude .cache | fzf } -export FZF_DEFAULT_COMMAND="fd --type f --follow" +export FZF_DEFAULT_COMMAND="fd --type f --follow -I" export FZF_DEFAULT_OPTS="-m --reverse --bind 'ctrl-o:execute(xdg-open {})+abort,ctrl-e:execute({})+abort,ctrl-y:execute(echo {} | xclip -selection clipboard -in)+abort'" export FZF_CTRL_T_OPTS="--no-height --preview '[[ \$(file --mime {}) =~ binary ]] && echo {} is a binary file || pygmentize {} 2> /dev/null | head -500'" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"