Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 7 May 2012 11:23:28 +0200
From: Frank Dittrich <frank_dittrich@...mail.com>
To: john-users@...ts.openwall.com
Subject: Re: file name expansion for --wordlist= and file name
 starting with ~

On 05/07/2012 10:42 AM, Frank Dittrich wrote:
> For all these cases
> $ vim -d:~/test
> $ vim --dummy:~/test
> $ vim -d=~/test
> $ vim --dummy:~/test
> I can press the tab key, and the file name gets expanded to
> /home/fd/test.txt
> 
> But the same doesn't work for ./john.
> It doesn't work for or john /usr/bin/john, either. I just installed
> fedora's package to test this.

After
$ complete -F _filedir_xspec john

I can use tab completion here
$ john --wordlist=~/test
and it gets expanded to
$ john --wordlist=/home/fd/test.txt

This doesn't just work for john (/usr/bin/john), but also for ./john (in
a run subdirectory).

To make this work permanently, I included the line following line into
my into my ~/.bashrc:
complete -F _filedir_xspec john

Frank

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.