dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

spot (334B)


      1 #!/usr/bin/env bash
      2 
      3 #TODO Check system for this variable before setting default.
      4 #TODO Handle if program not found
      5 #TODO Add more search dirs for different platforms
      6 search_dirs=("/Applications" "/System/Applications")
      7 
      8 app="$(find ${search_dirs[@]} -maxdepth 2 -name "*.app" -type d | ${FUZZER})"
      9 
     10 test -n "${app}" && open "${app}"