Blame view

repos/robbyrussell/oh-my-zsh/plugins/sfffe/sfffe.plugin.zsh 591 Bytes
093a6c34b   mj   Squashed 'repos/r...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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'
  }