bashrc.cust: Add 'findstring' function
This commit is contained in:
1 parent
d5f85a724c
commit
4fd2169d0d
1 file changed
+4
@@ -36,6 +36,10 @@ function cust-error {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function findstring {
|
||||||
|
find . -type f -exec grep --color=auto -i "$@" "{}" +
|
||||||
|
}
|
||||||
|
|
||||||
function getalias {
|
function getalias {
|
||||||
alias "$1" |cut -d "=" -f 2- |sed "s/.//; s/.$//"
|
alias "$1" |cut -d "=" -f 2- |sed "s/.//; s/.$//"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user