Commits

Evan Gates  committed 1666573

add filee, add completion for cate and filee

  • Participants
  • Parent commits cbae8dc

Comments (0)

Files changed (1)

 
 init_misc () {
 	complete -F _command e n t vie
+	complete -F _command e n t cate
+	complete -F _command e n t filee
 	complete -o nospace -F _cd cs
 	complete -o default -F _longopt a s l ll la lal
 
 }
 
 
-fun  () { fortune -a | fmt -80 -s | cowsay -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n; }
-vie  () { bin=$(which "$1") && vim "$bin"; }
-cate () { bin=$(which "$1") && cat "$bin"; }
+fun   () { fortune -a | fmt -80 -s | cowsay -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n; }
+vie   () { bin=$(which "$1") && vim  "$bin"; }
+cate  () { bin=$(which "$1") && cat  "$bin"; }
+filee () { bin=$(which "$1") && file "$bin"; }
 
 e () { "$@"     & exit        ; }
 n () { "$@"     ; echo -e "\a"; }