[systemd-bugs] [Bug 83489] New: Provide standard alias for all systemd commands

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 4 04:19:40 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=83489

          Priority: medium
            Bug ID: 83489
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: Provide standard alias for all systemd commands
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: lzap at seznam.cz
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Hello,

it looks like it's not just me who has problems with default commands names.
One of the most important binary is called "systemctl", but 'systemc<TAB>' is
needed for /usr/bin/systemctl to expand. On the other hand 'servi<TAB>' works
just fine and on default Fedora install it's just 'ser<TAB>'. Six (four)
keystrokes vs eight.

While aliases solve this problem, I propose to create a git-like wrapper short
enough to type with shell completion. Something like:

    sd control
    sd journal
    sd cgls
    sd cgtop

This should give us five to six keystrokes to complete the required command.

If you doubt about having this by default, I propose the same behavior as an
optional thing that would ship with systemd and with one command administrators
could turn it on.

And where is the benefit when I compare this proposal with user-defined
aliases? When you log on a system that is under control of multiple people, you
can easily turn this on and save your time. It would be likely turned on by
somebody else.

Btw for the "sd" candidate it looks like nothing is using it in Fedora and
RHEL. Not sure about other distros tho. This needs more discussion.

[lzap at lzapx ~]$ sudo yum whatprovides /usr/sbin/sd
No matches found

[lzap at lzapx ~]$ sudo yum whatprovides /usr/bin/sd
No matches found

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140904/0b4558c8/attachment-0001.html>


More information about the systemd-bugs mailing list