Bug 908212 - [RFE] Add "sc" global alias for "systemctl"
Summary: [RFE] Add "sc" global alias for "systemctl"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-06 07:54 UTC by Miguel Perez Colino
Modified: 2013-02-12 15:22 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-12 15:22:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miguel Perez Colino 2013-02-06 07:54:35 UTC
Description of problem:
The systemctl command requires many keystrokes to be executed. Tab completion does not relieve this due to other commands starting with the same characters. IIRC curently there is no command called "sc", so it could be used as an alias. As "systemctl" will become a very used command, a very short alias for it can enhance its usabiliy.

Version-Release number of selected component (if applicable): All versions with systemd

How reproducible:
Simply by using a Fedora version with systemd installed

Steps to Reproduce:
1. Type "syst" <tab><tab> ... and keep typing until completing at least "systemc".
2. Type "sc" and obtain a command not found
3. Create an alias or a symlink sc -> systemctl
  
Actual results:
sc command not found

Expected results:
sc working as s synonym for systemctl

Additional info:

Comment 1 Jóhann B. Guðmundsson 2013-02-06 08:41:17 UTC
Where not shell aliases invented for cases just like these?

alias sc="/usr/bin/systemctl" ...

Comment 2 Matthew Miller 2013-02-06 14:52:19 UTC
(In reply to comment #1)
> Where not shell aliases invented for cases just like these?
> 
> alias sc="/usr/bin/systemctl" ...

Sure, but it would be nice to have it standard, so it could be documented and used as general shorthand.

(I'm also kind of fond of `jc` for journalctl.)

No existing software in Fedora uses this. There *is* a text-mode spreadsheet named 'sc' in Debian.

Comment 3 Lennart Poettering 2013-02-12 15:22:23 UTC
If people want to define local aliases for systemctl, but I am pretty sure we should not push redundancies like this from upstream, and we really should avoid adding this in downstream too in order to not allow people to write scripts that are not portable.

So, I am pretty strongly against this. Closing.


Note You need to log in before you can comment on or make changes to this bug.