Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
a9111488
Commit
a9111488
authored
May 17, 2013
by
yleo77
Browse files
add search by filename and file content feature
parent
27c6becf
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
a9111488
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/
custom/plugins/sfffe/sfffe.plugin.zsh
0 → 100644
View file @
a9111488
# ------------------------------------------------------------------------------
# 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'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment