]> git.rmz.io Git - dotfiles.git/blob - zsh/aliases/systemd.zsh
qutebrowser: update bookmarks
[dotfiles.git] / zsh / aliases / systemd.zsh
1 # system sessions
2 alias sc='systemctl'
3
4 alias sc-status='systemctl status'
5 alias sc-list-units='systemctl list-units'
6 alias sc-list-unit-files='systemctl list-unit-files'
7
8 alias sc-start='sudo systemctl start'
9 alias sc-restart='sudo systemctl restart'
10 alias sc-stop='sudo systemctl stop'
11 alias sc-reload='sudo systemctl reload-or-restart'
12 alias sc-daemon-reload='sudo systemctl --system daemon-reload'
13 alias sc-enable='sudo systemctl enable'
14 alias sc-reenable='sudo systemctl reenable'
15 alias sc-disable='sudo systemctl disable'
16
17 alias jc='journalctl --since=yesterday --priority=info'
18 alias jcb='journalctl -b --priority=info'
19
20 # user sessions
21 alias usc='systemctl --user'
22
23 alias usc-status='systemctl --user status'
24 alias usc-list-units='systemctl --user list-units'
25 alias usc-list-unit-files='systemctl --user list-unit-files'
26
27 alias usc-start='systemctl --user start'
28 alias usc-restart='systemctl --user restart'
29 alias usc-stop='systemctl --user stop'
30 alias usc-reload='systemctl --user reload-or-restart'
31 alias usc-daemon-reload='systemctl --user daemon-reload'
32 alias usc-enable='systemctl --user enable'
33 alias usc-reenable='systemctl --user reenable'
34 alias usc-disable='systemctl --user disable'
35
36 alias ujc='journalctl --user --since=yesterday'
37 alias ujc-err='journalctl --user --since=yesterday -p err'
38 alias ujc-warn='journalctl --user --since=yesterday -p warning'