You are not logged in.

#1 2008-05-28 23:30:57

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

netcfg2 with bash-completion

I've written a script to support bash completion for netcfg2.
Here it is:
http://fatcat.ftj.agh.edu.pl/~sitarzm/A … on/netcfg2

Just download it and place it in /etc/bash_completion.d, log out and login again and give it a try.

Offline

#2 2009-08-29 12:57:04

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: netcfg2 with bash-completion

Since I've put

alias n="netcfg2"

into my ~/.bashrc I've noticed that using

n profile

instead of

netcfg2 profile

bash completion doesn't work.


Till the last battle, till the last bottle.
aur - twitter

Offline

#3 2009-08-29 13:13:19

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: netcfg2 with bash-completion

Why not mail this to iphthus and get it included in the next release of netcfg?

Offline

#4 2009-08-29 13:25:40

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: netcfg2 with bash-completion

Daenyth wrote:

Why not mail this to iphthus and get it included in the next release of netcfg?

Mailed just now smile


Till the last battle, till the last bottle.
aur - twitter

Offline

#5 2009-08-29 13:52:27

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: netcfg2 with bash-completion

oh noooooooo
what about zsh?
/me cries

All these times I started to type "netcfg .." and then I am like "oh sh*t, I need to type my profile now, why isn't it completed" smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2009-08-29 15:01:50

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: netcfg2 with bash-completion

aur/zsh-netcfg 2.0-1
    A zsh completion function for netcfg
there you go smile

Offline

#7 2009-09-01 16:24:10

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: netcfg2 with bash-completion

Daenyth wrote:

Why not mail this to iphthus and get it included in the next release of netcfg?

I did it some time ago.
I also filled a bug/request in flyspray.
There's also a package bash-completion-netcfg in AUR: http://aur.archlinux.org/packages.php?ID=24127

Last edited by MAC!EK (2009-09-01 16:25:11)

Offline

#8 2009-09-01 16:38:32

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: netcfg2 with bash-completion

Since the script was quite old I replaced it with a new version on that site:
http://fatcat.ftj.agh.edu.pl/~sitarzm/A … ion/netcfg
or
http://fatcat.ftj.agh.edu.pl/~sitarzm/A … on/netcfg2

uastasi if you want the completion to work with 'n' command add a line at the end:

complete -F _netcfg n

Offline

#9 2009-09-01 19:03:59

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: netcfg2 with bash-completion

MAC!EK wrote:

Since the script was quite old I replaced it with a new version on that site:
http://fatcat.ftj.agh.edu.pl/~sitarzm/A … ion/netcfg
or
http://fatcat.ftj.agh.edu.pl/~sitarzm/A … on/netcfg2

uastasi if you want the completion to work with 'n' command add a line at the end:

complete -F _netcfg n

Awesome, thank you smile:)


Till the last battle, till the last bottle.
aur - twitter

Offline

Board footer

Powered by FluxBB