• Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    Shell
  • License
    The Unlicense
  • Created almost 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Utility tool for using systemctl interactively

🚦 fuzzy-sys

Utility for using systemctl interactively via junegunn/fzf.

📦 Installation

Make sure you have fzf installed

# 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 / zsh
source <(curl -sSL git.io/JteMq)

Features

All commands support multi selection via Tab.

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 <unit>
    --stop      : systemctl stop <unit>
    --restart   : systemctl restart <unit>
    --status    : systemctl status <unit>
    --edit      : systemctl edit --full <unit>
    --enable    : systemctl enable --now <unit>
    --disable   : systemctl disable --now <unit>
    --journal   : journalctl -f -u <unit> 
    --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

Similar projects

sysz very well written and improved version of my script, good job :)