https://github.com/zocker1999net/zsh-launch
This plugin adds the command `launch` which allows launching applications from cli without further distraction
https://github.com/zocker1999net/zsh-launch
Last synced: 10 months ago
JSON representation
This plugin adds the command `launch` which allows launching applications from cli without further distraction
- Host: GitHub
- URL: https://github.com/zocker1999net/zsh-launch
- Owner: Zocker1999NET
- License: wtfpl
- Created: 2020-03-21T10:45:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T10:48:28.000Z (almost 6 years ago)
- Last Synced: 2025-02-17T13:28:32.017Z (about 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# launch Plugin for ZSH
This plugin adds the command `launch` which allows launching applications from cli without further distraction.
But why not directly call the application?
- Because you do not want to see the (error) output of the application
- Because you would like to use your shell while the application is still running
- Because the application should be still running after exiting the shell
`launch` is an simple alias (but not built-in alias) to launch the given application
while redirecting *STDOUT* and *STDERR* to `/dev/null`
and forking the process to the `init` process,
so your shell and the new process run independently from one another.
It is literally the same as `APPLICATION >/dev/null 2>&1 &!` but way faster to type.
## Repository clones
The original repository will be stored on [GitHub](https://github.com/Zocker1999NET/zsh-launch).
You can use the original reopsitory if you want to use GitHub.
Also issues and pull requests will be collected there for convenience.
This repository will be cloned to my own server.
You can use the [clone](https://git.banananet.work/zsh-plugins/launch) instead of this repository
if you want to avoid use GitHub.
## Installation
### zsh (without plugin support)
1. Clone project
2. Add following line to your `.zshrc`:
```sh
SOURCE "path/to/repo/launch.plugin.zsh"
```
### oh-my-zsh
1. Clone project into `~/.oh-my-zsh/custom/plugins/launch`
2. Add `launch` to your plugin list
```sh
plugins=(… launch …)
```
### Antigen
1. Add following line to your `.zshrc`:
```sh
antigen bundle Zocker1999NET/zsh-launch # GitHub if default repository unchanged
antigen bundle https://git.banananet.work/zsh-plugins/launch # Own Server
```
or
1. Add the repository to your plugin list
```sh
antigen bundles <