Skip to content

Repository files navigation

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

application alias MacOS Ubuntu Fedora
Adobe Lightroom lightroom ✅ - -
Adobe Photoshop photoshop ✅ - -
Apple Safari safari ✅ - -
Filezilla filezilla ✅ - -
Mozilla Firefox firefox ✅ - -
Google Chrome chrome ✅ - -
Jetbrains PhpStorm phpstorm ✅ - -
Sublime Text sublime ✅ - -

⌨️ 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

About

Launch desktop/GUI apps from CLI (e.g. Chrome, PHPStorm, Photoshop ...)

Topics

Resources

Code of conduct

Contributing

Stars

4 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages

Generated from pforret/bashew