fdcfun: search C function definition in Linux source
This commit is contained in:
parent
12b8f29978
commit
9289bff8cf
9
zshrc
9
zshrc
@ -3806,6 +3806,15 @@ if command -v direnv &> /dev/null ; then
|
||||
eval "$(direnv hook zsh)"
|
||||
fi
|
||||
|
||||
# Command to search C function definitions, with Linux kernel coding style.
|
||||
# Example:
|
||||
# $ fdcfun wait_for_completion
|
||||
if command -v rg &> /dev/null; then
|
||||
fdcfun() {
|
||||
rg -U "$1(.*)\n\{"
|
||||
}
|
||||
fi
|
||||
|
||||
# add local binaries
|
||||
if [[ -r ~/bin ]]; then
|
||||
PATH=$PATH:~/bin
|
||||
|
Loading…
Reference in New Issue
Block a user