Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/NullSense/fuzzy-sys

Utility tool for using systemctl interactively
https://github.com/NullSense/fuzzy-sys

fuzzy fzf fzf-plugin systemctl systemd systemd-unit utility

Last synced: about 2 months ago
JSON representation

Utility tool for using systemctl interactively

Lists

README

        

:vertical_traffic_light: fuzzy-sys



Utility for using systemctl interactively via junegunn/fzf.

## :package: Installation

**Make sure you have [fzf](https://github.com/junegunn/fzf) installed**

```zsh
# for zplug
zplug 'NullSense/fuzzy-sys'

# for zgen
zgen load 'NullSense/fuzzy-sys'

# for antigen
antigen bundle 'NullSense/fuzzy-sys'
# manually
# Clone the repository and source it in your shell's rc file.
```

## Try it out without installing anything

If you want to try `fuzzy-sys` without installing it:

```bash
# bash / zsh
source <(curl -sSL git.io/JteMq)
```

## :star: Features

All commands support multi selection via Tab.

```bash
Usage: fuzzy-sys [options]
Utility for using systemctl interactively via fzf.
If no options are given fully interactive mode is launched with system service units being used.
-u : work with --user services
--start : systemctl start
--stop : systemctl stop
--restart : systemctl restart
--status : systemctl status
--edit : systemctl edit --full
--enable : systemctl enable --now
--disable : systemctl disable --now
--journal : journalctl -f -u
--help : print this message and exit

Examples:
fuzzy-sys -u --edit : edit a user service
fuzzy-sys --start : start a system service
fuzzy-sys --journal : start tailing a system service journal
```

## Demo

[![asciicast](https://asciinema.org/a/390806.svg)](https://asciinema.org/a/390806)

## Similar projects

[sysz](https://github.com/joehillen/sysz) very well written and improved version of my script, good job :)