diff options
author | Robby Russell <robby@planetargon.com> | 2013-10-24 20:26:20 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-10-24 20:26:20 -0700 |
commit | 9f88fb522901579242e1aaf99e420efd90fd0205 (patch) | |
tree | b992cc8c8209a0da52eac054493201fd39b4c52f /plugins/sfffe | |
parent | e44c147e25ec5dfbf20d5b98544c8b8484abd856 (diff) | |
parent | c5902d3f3498f9cd7553f358f2bf741b0784dbd0 (diff) | |
download | zsh-9f88fb522901579242e1aaf99e420efd90fd0205.tar.gz zsh-9f88fb522901579242e1aaf99e420efd90fd0205.tar.bz2 zsh-9f88fb522901579242e1aaf99e420efd90fd0205.zip |
Merge pull request #2165 from kevinxucs/custom-gitignore-fix
gitignore fix for custom folder.
Diffstat (limited to 'plugins/sfffe')
-rw-r--r-- | plugins/sfffe/sfffe.plugin.zsh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/sfffe/sfffe.plugin.zsh b/plugins/sfffe/sfffe.plugin.zsh new file mode 100644 index 000000000..a0f034908 --- /dev/null +++ b/plugins/sfffe/sfffe.plugin.zsh @@ -0,0 +1,28 @@ +# ------------------------------------------------------------------------------ +# FILE: sfffe.plugin.zsh +# DESCRIPTION: search file for FE +# AUTHOR: yleo77 (ylep77@gmail.com) +# VERSION: 0.1 +# REQUIRE: ack +# ------------------------------------------------------------------------------ + +if [ ! -x $(which ack) ]; then + echo \'ack\' is not installed! + exit -1 +fi + +ajs() { + ack "$@" --type js +} + +acss() { + ack "$@" --type css +} + +fjs() { + find ./ -name "$@*" -type f | grep '\.js' +} + +fcss() { + find ./ -name "$@*" -type f | grep '\.css' +} |