Skip to content

NullSense/fuzzy-sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚦 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 :)