mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-09 17:00:44 +01:00
Moved misplaced plugins.
This commit is contained in:
12
plugins/gitignore/gitignore.plugin.zsh
Normal file
12
plugins/gitignore/gitignore.plugin.zsh
Normal file
@@ -0,0 +1,12 @@
|
||||
function gi() { curl http://gitignore.io/api/$@ ;}
|
||||
|
||||
_gitignireio_get_command_list() {
|
||||
curl -s http://gitignore.io/api/list | tr "," "\n"
|
||||
}
|
||||
|
||||
_gitignireio () {
|
||||
compset -P '*,'
|
||||
compadd -S '' `_gitignireio_get_command_list`
|
||||
}
|
||||
|
||||
compdef _gitignireio gi
|
||||
28
plugins/sfffe/sfffe.plugin.zsh
Normal file
28
plugins/sfffe/sfffe.plugin.zsh
Normal file
@@ -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