mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Revert "add search by filename and file content feature"
This reverts commit a9111488e4.
This commit is contained in:
parent
61e3951e4b
commit
ad766f239e
2 changed files with 3 additions and 30 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,8 +1,9 @@
|
||||||
locals.zsh
|
locals.zsh
|
||||||
log/.zsh_history
|
log/.zsh_history
|
||||||
projects.zsh
|
projects.zsh
|
||||||
custom/example
|
custom/*
|
||||||
custom/example.zsh
|
!custom/example
|
||||||
|
!custom/example.zsh
|
||||||
*.swp
|
*.swp
|
||||||
!custom/example.zshcache
|
!custom/example.zshcache
|
||||||
cache/
|
cache/
|
||||||
|
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# 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'
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue