From 06383f2b90ae72b8e81a8bca38721baf7340638c Mon Sep 17 00:00:00 2001 From: tomit4 Date: Mon, 11 Apr 2022 15:39:35 -0700 Subject: [PATCH] created fzfi alias that pipes ripgrep to ignore npm_modules and .git directories when fzf --- bashrc.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bashrc.txt b/bashrc.txt index 3be241ca..a0e0ac02 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -2,7 +2,6 @@ # ~/.bashrc # history -c && history -w && hash -r - if [ $TERM == "xterm-256color" ] ; then neofetch http_proxy=http://127.0.0.1:8118/ @@ -169,7 +168,7 @@ ex () HISTTIMEFORMAT="%d/%m/%y %T " # Displays current git branch if there is any and also styles bash prompt -export PS1='\[\033[01;36m\][\u@\h\[\033[01;37m\] \W\[\033[01;36m\]]\$\033[01;37m\] $(git branch 2>/dev/null | grep '^*' | colrm 1 2)\n\033[01;36m└─▶ \033[37m' +export PS1='\[\033[01;36m\][\u@\h\[\033[01;37m\] \W\[\033[01;36m\]]\$\033[01;37m\] $(git branch 2>/dev/null | grep '^*' | colrm 1 2)\n\033[01;36m└─▶\033[37m ' # Custom Bash Commands alias dmesg="doas dmesg -H" @@ -218,7 +217,8 @@ alias shred="doas shred -uzv" # shreds the file and overwrites it with 1s and 0s alias indelible="doas chattr +i" # makes a file impossible to delete (except with sudo) alias kfonts="kitty +list-fonts" alias {kdiff,kitten,kd}="kitty +kitten diff" -alias rg="doas rg --colors 'match:fg:blue' --colors 'line:fg:blue'" +alias rg="rg -i --colors 'match:fg:blue' --colors 'line:fg:blue'" +alias fzfi="rg --files --hidden --follow --no-ignore-vcs -g '!{node_modules,.git}' | fzf" alias bluepill="neo-matrix --bold=2 -D --color=cyan --density=0.75 --charset=katakana --speed=12 --fullwidth --screensaver" alias calendar="orage" alias nf="neofetch"