2019-01-12 15:47:23 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# FILE: sfffe.plugin.zsh
|
|
|
|
# DESCRIPTION: search file for FE
|
|
|
|
# AUTHOR: yleo77 (ylep77@gmail.com)
|
|
|
|
# VERSION: 0.1
|
|
|
|
# REQUIRE: ack
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2020-06-11 14:59:30 +00:00
|
|
|
if [ ! -x $(which ack) ]; then
|
|
|
|
echo \'ack\' is not installed!
|
|
|
|
exit -1
|
2019-01-12 15:47:23 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
ajs() {
|
|
|
|
ack "$@" --type js
|
|
|
|
}
|
|
|
|
|
|
|
|
acss() {
|
|
|
|
ack "$@" --type css
|
|
|
|
}
|
|
|
|
|
|
|
|
fjs() {
|
|
|
|
find ./ -name "$@*" -type f | grep '\.js'
|
|
|
|
}
|
|
|
|
|
|
|
|
fcss() {
|
|
|
|
find ./ -name "$@*" -type f | grep '\.css'
|
|
|
|
}
|