Created
September 11, 2024 08:21
-
-
Save edimetia3d/4d93de1824b51cd72639ddc5abd6d088 to your computer and use it in GitHub Desktop.
bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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