Re: Share your pkg aliases
On Thu, 2 Apr 2015 22:19:10 +0200 Baptiste Daroussin b...@freebsd.org wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. options: query -i %n - %Ok: %Ov, roptions: rquery -i %n - %Ok: %Ov, comment: query -i %c, desc: query -i %e, roptions is particularly useful to see if the default options fit one's needs (either on the initial install or on an upgrade when OPTIONS changed). -- IOnut - Un^d^dregistered ;) FreeBSD user Intellectual Property is nowhere near as valuable as Intellect FreeBSD committer - ite...@freebsd.org, PGP Key ID 29597D20 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
+--On 3 avril 2015 12:47:31 -0700 Craig Rodrigues rodr...@freebsd.org wrote: | On Thu, Apr 2, 2015 at 1:19 PM, Baptiste Daroussin b...@freebsd.org | wrote: | | Hi, | | For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful | aliases, | of course this is subjective, if you think you have added some useful | aliases | into your pkg.conf please share those so we can add them directly into | the next | release. | | | I notice that there is a /usr/local/etc/bash_completion.d/_pkg.bash file | which implements tab completion | for pkg commands. Is there a way to make this file get picked up | by default when ports-mgmt/pkg is installed, | instead of having to edit .bashrc? | | It's a minor thing, but tab completions are really nice for usability. | bash shell users can use this, but zsh also has a way to read bash | completion scripts. It's picked up automatically when you install shells/bash-completion. -- Mathieu Arnold ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
On Fri, Apr 03, 2015 at 08:15:29PM -0700, Kevin Oberman wrote: On Fri, Apr 3, 2015 at 12:47 PM, Craig Rodrigues rodr...@freebsd.org wrote: On Thu, Apr 2, 2015 at 1:19 PM, Baptiste Daroussin b...@freebsd.org wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. I notice that there is a /usr/local/etc/bash_completion.d/_pkg.bash file which implements tab completion for pkg commands. Is there a way to make this file get picked up by default when ports-mgmt/pkg is installed, instead of having to edit .bashrc? It's a minor thing, but tab completions are really nice for usability. bash shell users can use this, but zsh also has a way to read bash completion scripts. -- Craig And I keep meaning to write a tcsh completion script for pkg. Maybe I'll get to at least a basic one next week. I see that bash completion scripts are quite different, but I'll see if the _pkg.bash file can at least get me started. It does more than I'd probably get done in the first pass. that would be much appreciated :) Best regards, Bapt pgphMJD8wCxrQ.pgp Description: PGP signature
Re: Share your pkg aliases
On Sat, Apr 4, 2015 at 1:50 AM, Mathieu Arnold m...@freebsd.org wrote: +--On 3 avril 2015 12:47:31 -0700 Craig Rodrigues| | It's a minor thing, but tab completions are really nice for usability. | bash shell users can use this, but zsh also has a way to read bash | completion scripts. It's picked up automatically when you install shells/bash-completion. Cool. shells/bash-completion *does* work with pkg. It would be cool if shells/bash-completion was automatically installed when the bash port is installed, so that the average user does not have to do any other setup, and things *just work* out of the box. It would also give the pkg developers incentive to keep the bash completion updated and in sync as new pkg sub commands and command flags are added. I just tried zsh, and it looks like the pkg completions work by default with zsh. Very nice! -- Craig ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
On Sat, Apr 04, 2015 at 11:05:10AM -0700, Craig Rodrigues wrote: On Sat, Apr 4, 2015 at 1:50 AM, Mathieu Arnold m...@freebsd.org wrote: +--On 3 avril 2015 12:47:31 -0700 Craig Rodrigues| | It's a minor thing, but tab completions are really nice for usability. | bash shell users can use this, but zsh also has a way to read bash | completion scripts. It's picked up automatically when you install shells/bash-completion. Cool. shells/bash-completion *does* work with pkg. It would be cool if shells/bash-completion was automatically installed when the bash port is installed, so that the average user does not have to do any other setup, and things *just work* out of the box. It would also give the pkg developers incentive to keep the bash completion updated and in sync as new pkg sub commands and command flags are added. None of the pkg developpers are using bash or bash completion so ... we are accepting patches... you might understand that the number of people involved in pkg(8) is pretty low, and lot of work is still needed on the pkg front. I won't personnally spend my time on bash completion because I have imho way too many things to do. I just tried zsh, and it looks like the pkg completions work by default with zsh. Very nice! That is a problem with bash, completion is not officially part of the project Best regards, Bapt pgp81ND1vyiwH.pgp Description: PGP signature
Re: Share your pkg aliases
On Sat, Apr 4, 2015 at 11:18 AM, Baptiste Daroussin b...@freebsd.org wrote: On Sat, Apr 04, 2015 at 11:05:10AM -0700, Craig Rodrigues wrote: On Sat, Apr 4, 2015 at 1:50 AM, Mathieu Arnold m...@freebsd.org wrote: +--On 3 avril 2015 12:47:31 -0700 Craig Rodrigues| | It's a minor thing, but tab completions are really nice for usability. | bash shell users can use this, but zsh also has a way to read bash | completion scripts. It's picked up automatically when you install shells/bash-completion. Cool. shells/bash-completion *does* work with pkg. It would be cool if shells/bash-completion was automatically installed when the bash port is installed, so that the average user does not have to do any other setup, and things *just work* out of the box. It would also give the pkg developers incentive to keep the bash completion updated and in sync as new pkg sub commands and command flags are added. None of the pkg developpers are using bash or bash completion so ... we are That may be true, but I see that a few pkg committers use zsh. One thing that I can see that the pkg project could do is instead of having separate completion files for bash and zsh, only have one for bash. zsh can grok bash completions. That way you will only have one file to maintain, and zsh and bash users can test it and benefit from it. For example, right now, if I pkg install tmux, if I use zsh as my shell, it groks the bash completions that come with the tmux port. I agree with you that it is unfortunate that bash completions is not part of bash itself. Maybe we can add a dependency to shells/bash if bash is installed, it installs the bash-completion port as well. It's a minor thing, but improves the out of the box user experience of the command-line. -- Craig ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
On Sat, Apr 04, 2015 at 12:00:55PM -0700, Craig Rodrigues wrote: On Sat, Apr 4, 2015 at 11:18 AM, Baptiste Daroussin b...@freebsd.org wrote: On Sat, Apr 04, 2015 at 11:05:10AM -0700, Craig Rodrigues wrote: On Sat, Apr 4, 2015 at 1:50 AM, Mathieu Arnold m...@freebsd.org wrote: +--On 3 avril 2015 12:47:31 -0700 Craig Rodrigues| | It's a minor thing, but tab completions are really nice for usability. | bash shell users can use this, but zsh also has a way to read bash | completion scripts. It's picked up automatically when you install shells/bash-completion. Cool. shells/bash-completion *does* work with pkg. It would be cool if shells/bash-completion was automatically installed when the bash port is installed, so that the average user does not have to do any other setup, and things *just work* out of the box. It would also give the pkg developers incentive to keep the bash completion updated and in sync as new pkg sub commands and command flags are added. None of the pkg developpers are using bash or bash completion so ... we are That may be true, but I see that a few pkg committers use zsh. One thing that I can see that the pkg project could do is instead of having separate completion files for bash and zsh, only have one for bash. zsh can grok bash completions. That way you will only have one file to maintain, and zsh and bash users can test it and benefit from it. For example, right now, if I pkg install tmux, if I use zsh as my shell, it groks the bash completions that come with the tmux port. I agree with you that it is unfortunate that bash completions is not part of bash itself. Maybe we can add a dependency to shells/bash if bash is installed, it installs the bash-completion port as well. It's a minor thing, but improves the out of the box user experience of the command-line. As a maintainer of zsh, and heavy user of zsh I will never base any completion for zsh on bash completion, for simple reasons I consider bash completion hackish, and most of the time inefficient on zsh. We are speaking of opensource software, if bash users want to see their completion improved then they should just provide patches. I am a zsh guy and I do not update zsh completion because of ENOTIME already so... Best regards, Bapt pgpiRZpgnBeYE.pgp Description: PGP signature
Re: Share your pkg aliases
On Fri, Apr 03, 2015 at 06:36:52AM +, Henry Hu wrote: On Thu, Apr 2, 2015 at 4:19 PM Baptiste Daroussin b...@freebsd.org wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. I have two aliases: alias: { locked: query -e '%k == 1' %n, leaf: query -e '%#r == 0' '%n auto: %a', } The first one queries the locked packages, and the second one queries the leaf packages. Thanks How is locked different from pkg lock -l ? Best regards, Bapt pgp3do7Pu9ceq.pgp Description: PGP signature
Re: Share your pkg aliases
On Fri, Apr 3, 2015 at 2:53 AM Baptiste Daroussin b...@freebsd.org wrote: On Fri, Apr 03, 2015 at 06:36:52AM +, Henry Hu wrote: On Thu, Apr 2, 2015 at 4:19 PM Baptiste Daroussin b...@freebsd.org wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. I have two aliases: alias: { locked: query -e '%k == 1' %n, leaf: query -e '%#r == 0' '%n auto: %a', } The first one queries the locked packages, and the second one queries the leaf packages. Thanks How is locked different from pkg lock -l ? Basically the same... I'm not aware of pkg lock -l. Best regards, Bapt ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
On Thu, Apr 2, 2015 at 4:19 PM Baptiste Daroussin b...@freebsd.org wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. I have two aliases: alias: { locked: query -e '%k == 1' %n, leaf: query -e '%#r == 0' '%n auto: %a', } The first one queries the locked packages, and the second one queries the leaf packages. Best regards, Bapt ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
On Thu, Apr 02, 2015 at 10:19:10PM +0200, Baptiste Daroussin wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. myports: rquery -e '%m = l...@freebsd.org' %o, # Show ports maintained by me unmaintained: query -e '%m = po...@freebsd.org' %o, # Show unmaintained ports csearch: search -U -c, # Search a port's short description pgp6pV8wA4MSc.pgp Description: PGP signature
Re: Share your pkg aliases
+--On 2 avril 2015 22:19:10 +0200 Baptiste Daroussin b...@freebsd.org wrote: | Hi, | | For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful | aliases, of course this is subjective, if you think you have added some | useful aliases into your pkg.conf please share those so we can add them | directly into the next release. leaf = query -e \%#r == 0\ \%n-%v\; noauto = query -e \%a == 0\ \%n-%v\; -- Mathieu Arnold ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
On Thu, Apr 2, 2015 at 1:19 PM, Baptiste Daroussin b...@freebsd.org wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. I notice that there is a /usr/local/etc/bash_completion.d/_pkg.bash file which implements tab completion for pkg commands. Is there a way to make this file get picked up by default when ports-mgmt/pkg is installed, instead of having to edit .bashrc? It's a minor thing, but tab completions are really nice for usability. bash shell users can use this, but zsh also has a way to read bash completion scripts. -- Craig ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Share your pkg aliases
On Fri, Apr 3, 2015 at 12:47 PM, Craig Rodrigues rodr...@freebsd.org wrote: On Thu, Apr 2, 2015 at 1:19 PM, Baptiste Daroussin b...@freebsd.org wrote: Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. I notice that there is a /usr/local/etc/bash_completion.d/_pkg.bash file which implements tab completion for pkg commands. Is there a way to make this file get picked up by default when ports-mgmt/pkg is installed, instead of having to edit .bashrc? It's a minor thing, but tab completions are really nice for usability. bash shell users can use this, but zsh also has a way to read bash completion scripts. -- Craig And I keep meaning to write a tcsh completion script for pkg. Maybe I'll get to at least a basic one next week. I see that bash completion scripts are quite different, but I'll see if the _pkg.bash file can at least get me started. It does more than I'd probably get done in the first pass. -- Kevin Oberman, Network Engineer, Retired E-mail: rkober...@gmail.com ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Share your pkg aliases
Hi, For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful aliases, of course this is subjective, if you think you have added some useful aliases into your pkg.conf please share those so we can add them directly into the next release. Best regards, Bapt pgp97EFvLxZTn.pgp Description: PGP signature