Skip to content

Instantly share code, notes, and snippets.

@edimetia3d
Created September 11, 2024 08:21
Show Gist options
  • Save edimetia3d/4d93de1824b51cd72639ddc5abd6d088 to your computer and use it in GitHub Desktop.
Save edimetia3d/4d93de1824b51cd72639ddc5abd6d088 to your computer and use it in GitHub Desktop.
bashrc
if type rg &> /dev/null; then
export FZF_DEFAULT_COMMAND='rg --files'
export FZF_DEFAULT_OPTS='-m'
fi
function grepcode(){
grep $1 ./ -r -n -I
}
function findfile(){
find ./ -name "*$1*"
}
function lsmake(){
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment