]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/sfffe/sfffe.plugin.zsh
177e5fa2f291ac42527a43a86a7a5caab99e7976
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / sfffe / sfffe.plugin.zsh
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
9 if (( ! $+commands[ack] )); then
10     echo "'ack' is not installed!"
11     return
12 fi
13
14 ajs() {
15     ack "$@" --type js
16 }
17
18 acss() {
19     ack "$@" --type css
20 }
21
22 fjs() {
23     find ./ -name "$@*" -type f | grep '\.js'
24 }
25
26 fcss() {
27     find ./ -name "$@*" -type f | grep '\.css'
28 }