sfffe.plugin.zsh 591 B

12345678910111213141516171819202122232425262728
  1. # ------------------------------------------------------------------------------
  2. # FILE: sfffe.plugin.zsh
  3. # DESCRIPTION: search file for FE
  4. # AUTHOR: yleo77 (ylep77@gmail.com)
  5. # VERSION: 0.1
  6. # REQUIRE: ack
  7. # ------------------------------------------------------------------------------
  8. if [ ! -x $(which ack) ]; then
  9. echo \'ack\' is not installed!
  10. exit -1
  11. fi
  12. ajs() {
  13. ack "$@" --type js
  14. }
  15. acss() {
  16. ack "$@" --type css
  17. }
  18. fjs() {
  19. find ./ -name "$@*" -type f | grep '\.js'
  20. }
  21. fcss() {
  22. find ./ -name "$@*" -type f | grep '\.css'
  23. }