2013-05-17 17:48:06 +08:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# FILE: sfffe.plugin.zsh
|
|
|
|
# DESCRIPTION: search file for FE
|
|
|
|
# AUTHOR: yleo77 (ylep77@gmail.com)
|
|
|
|
# VERSION: 0.1
|
|
|
|
# REQUIRE: ack
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2020-05-26 23:59:45 +08:00
|
|
|
if (( ! $+commands[ack] )); then
|
|
|
|
echo "'ack' is not installed!"
|
|
|
|
return
|
2013-05-17 17:48:06 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
ajs() {
|
|
|
|
ack "$@" --type js
|
|
|
|
}
|
|
|
|
|
|
|
|
acss() {
|
|
|
|
ack "$@" --type css
|
|
|
|
}
|
|
|
|
|
|
|
|
fjs() {
|
|
|
|
find ./ -name "$@*" -type f | grep '\.js'
|
|
|
|
}
|
|
|
|
|
|
|
|
fcss() {
|
|
|
|
find ./ -name "$@*" -type f | grep '\.css'
|
|
|
|
}
|