Skip to content

mikcho/zsh-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

zsh-systemd

A systemd plugin for zsh.

It add sc-COMMAND aliases to systemctl COMMAND with sudo if necessary.

Installation

Install plugin:

git clone git://github.com/mikcho/zsh-systemd $ZSH_CUSTOM/plugins/zsh-systemd

Edit ~/.zshrc to enable plugin:

plugins=(zsh-systemd)

Source ~/.zshrc:

source ~/.zshrc

Add the plugin into ~/.zshrc:

zplug "mikcho/zsh-systemd"

Usage

Some examples:

Before: systemctl status nginx
After: sc-status nginx

Before: sudo systemctl restart nginx
After: sc-restart nginx

Before: sudo systemctl reboot
After: sc-reboot