GithubHelp home page GithubHelp logo

zsh-systemd's Introduction

zsh-systemd

zsh-systemd is a zsh plugin that provides aliases for systemd commands, both system and user.

installing

zinit

Add this to your zinit config (.zshrc):

zinit light redxtech/zsh-systemd

# it also works with turbo mode:
zinit ice wait lucid
zinit load redxtech/zsh-systemd

oh-my-zsh

Install it with your favourite zsh package manager, or clone it directly to your $ZSH_CUSTOM/plugins directory with git, and add systemd to the plugins array in your .zshrc file:

plugins=(... systemd)

usage

here is a list of all the commands:

alias ss="sudo systemctl"
alias sss="sudo systemctl status"
alias ssstart="sudo systemctl start"
alias ssstop="sudo systemctl stop"
alias ssr="sudo systemctl restart"
alias sse="sudo systemctl enable --now"
alias ssd="sudo systemctl disable --now"
alias ssm="sudo systemctl mask"
alias ssum="sudo systemctl unmask"
alias ssdr="sudo systemctl daemon-reload"

alias scu="systemctl --user"
alias ssu="systemctl --user status"
alias scus="systemctl --user start"
alias scust="systemctl --user stop"
alias scur="systemctl --user restart"
alias scue="systemctl --user enable --now"
alias scud="systemctl --user disable --now"
alias scum="systemctl --user mask"
alias scuum="systemctl --user unmask"
alias scudr="systemctl --user daemon-reload"

author

zsh-systemd © gabe dunn, released under the MIT License.

zsh-systemd's People

Contributors

redxtech avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.