mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-04-26 00:03:29 +02:00
add search by filename and file content feature
This commit is contained in:
+2
-3
@@ -1,9 +1,8 @@
|
|||||||
locals.zsh
|
locals.zsh
|
||||||
log/.zsh_history
|
log/.zsh_history
|
||||||
projects.zsh
|
projects.zsh
|
||||||
custom/*
|
custom/example
|
||||||
!custom/example
|
custom/example.zsh
|
||||||
!custom/example.zsh
|
|
||||||
*.swp
|
*.swp
|
||||||
!custom/example.zshcache
|
!custom/example.zshcache
|
||||||
cache/
|
cache/
|
||||||
|
|||||||
@@ -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'
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user