Re: Tip: Search Command Line Commands w/First Letters And Tab

2015-01-14 Thread Andrei POPESCU
On Vi, 09 ian 15, 20:33:41, Cindy-Sue Causey wrote:
> 
> Very cool. My thoughts are always that maybe someone else doesn't know
> it exists, and maybe they know of just the right wish list where this
> feature or a tweak of it would be perfect for the next upgrade of
> something else Debian out there. :)

In bash (but probably other shells have similar functionality) press 
Ctrl-r and start typing *any* part of a recent command ;)

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: Tip: Search Command Line Commands w/First Letters And Tab

2015-01-10 Thread Teemu Likonen
Siard [2015-01-10 18:31:19+01] wrote:

> Cindy-Sue Causey wrote:
>> [ $ abc yields list of available commands starting with abc ]
>
> You may also find this one useful:
> $ !abc  --> last used command starting with abc is executed.

And maybe also put these lines in your ~/.inputrc file:

set keymap emacs-meta
p: history-search-backward
n: history-search-forward

Now start new shell (or actually any program that uses Readline library)
and type "ls" (or something) in command line and then with keys Meta-p
and Meta-n you can browse all commands that start with those characters.
This assumes editing-mode "emacs" (which is the default). Meta key is
Esc and usually Alt too.


signature.asc
Description: PGP signature


Re: Tip: Search Command Line Commands w/First Letters And Tab

2015-01-10 Thread Siard
Cindy-Sue Causey wrote:
> [ $ abc yields list of available commands starting with abc ]

You may also find this one useful:
$ !abc  --> last used command starting with abc is executed.

Example:

$ !ic
[iceweasel starts]


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150110183119.0ea7a651.shiems...@kpnplanet.nl



Tip: Search Command Line Commands w/First Letters And Tab

2015-01-09 Thread Cindy-Sue Causey
On 5/2/14, Ralf Mardorf  wrote:
>
> Ok, if I don't remember the complete command name and I like to use the
> tab key to show me a list of available commands (r typing the complete
> command name is to much work, then I first type the first characters
> without sudo, push the tab key and after that I add sudo.
>
> [rocketmouse@archlinux ~]$ ch
> chacl chattrcheckdotdin   checkupdates  chfn
> chmod chpasswordchrt
> chage chcon checkgid  checkXML  chgpasswd
> chmorph   chromedriver  chsh
> charmap   chcp  check_hd  cheesechgrp
> chown chromium  chuser
> chat  chcpu check-regexp  chem  chktex
> chpasswd  chrootchvt
> [rocketmouse@archlinux ~]$ sudo ch



Am in my inbox digging around and came across this older post. Seemed
like a useful memory aid oriented tip to highlight. I just tried it,
and it works great in GNOME Terminal. I tried three letters, too. I
tried "deb" and received just "debconf" back at first for some reason.
For kicks and giggles since only one command came back, I hit the tab
key a couple more times again and ended up receiving a list of all
commands that begin with "debconf".

Very cool. My thoughts are always that maybe someone else doesn't know
it exists, and maybe they know of just the right wish list where this
feature or a tweak of it would be perfect for the next upgrade of
something else Debian out there. :)

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with plastic sporks *


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAO1P-kBf7mjVRi0u6cLv09XBQCycOEb=pjhdndn2lrcn3uf...@mail.gmail.com