Home

Awesome

bash_unit CI Shellcheck CI GH Language GH stars GH tag GH License basher install

shlaunch

Start applications like Lightroom/Sublime Text/Chrome from CLI

🔥 Usage

Program: shlaunch 0.1.3 by peter@forret.com
Updated: Apr 18 09:32:42 2021
Description: Run applications from CLI
Usage: shlaunch [-h] [-q] [-v] [-l <log_dir>] <action?> <input?>
Flags, options and parameters:
    -h|--help        : [flag] show usage [default: off]
    -q|--quiet       : [flag] no output [default: off]
    -v|--verbose     : [flag] output more [default: off]
    -l|--log_dir <?> : [option] folder for log files   [default: /Users/pforret/log/shlaunch]
    <action>         : [parameter] program to start: phpstorm/spotify/... (optional)
    <input>          : [parameter] parameters to start program with (optional)
                                                     
### TIPS & EXAMPLES
* use shlaunch [application] [folder/file] to start the application
  shlaunch phpstorm .
* use [alias] [folder/file] to start the [alias] application (alias = symlink to shlaunch)
  phpstorm .
  lightroom Photos/IMG1243547.dng
* use shlaunch check to check if this script is ready to execute and what values the options/flags are
  shlaunch check
* use shlaunch env to generate an example .env file
  shlaunch env > .env
* use shlaunch update to update to the latest version

There are aliases (symbolic links) that facilitate usage. E.g. firefox www.google.com is equivalent to shlaunch firefox www.google.com, because of the pre-existing symbolic link ln -s shlaunch.sh firefox.

Applications supported

applicationaliasMacOSUbuntuFedora
Adobe Lightroomlightroom--
Adobe Photoshopphotoshop--
Apple Safarisafari--
Filezillafilezilla--
Mozilla Firefoxfirefox--
Google Chromechrome--
Jetbrains PhpStormphpstorm--
Sublime Textsublime--

⌨️ Examples

> phpstorm .
# start PhpStorm with current folder as project

> safari www.google.com 
# open Safari with Google website

🚀 Installation

with basher

$ basher install pforret/shlaunch

or with git

$ git clone https://github.com/pforret/shlaunch.git
$ cd shlaunch

📝 Acknowledgements

© 2021 Peter Forret