[101579] trunk/dports/shells/zsh/Portfile

Ryan Schmidt ryandesign at macports.org
Sun Jan 13 22:09:50 PST 2013


On Jan 13, 2013, at 22:50, larryv at macports.org wrote:

> Revision: 101579
>          https://trac.macports.org/changeset/101579
> Author:   larryv at macports.org
> Date:     2013-01-13 20:50:01 -0800 (Sun, 13 Jan 2013)
> Log Message:
> -----------
> zsh: Add notes on changing the default login shell.
> 
> Modified Paths:
> --------------
>    trunk/dports/shells/zsh/Portfile
> 
> Modified: trunk/dports/shells/zsh/Portfile
> ===================================================================
> --- trunk/dports/shells/zsh/Portfile	2013-01-14 04:19:19 UTC (rev 101578)
> +++ trunk/dports/shells/zsh/Portfile	2013-01-14 04:50:01 UTC (rev 101579)
> @@ -44,6 +44,17 @@
> test.run        yes
> test.target     check
> 
> +notes "
> +To set MacPorts' ${name} as default login shell, run:
> +
> +    sudo chpass -s ${prefix}/bin/${name} \${USER}
> +
> +To be able to switch default shells to or from ${name} without superuser
> +privileges, add it to /etc/shells:
> +
> +    sudo sh -c 'echo ${prefix}/bin/${name} >> /etc/shells'
> +"

MacPorts wraps notes to the width of the terminal, so you should not introduce hard line breaks (which is what you have above after the word "superuser"). Use a backslash (immediately after "superuser", without a space in between) if you want to use newlines to keep the lines in the Portfile at a manageable length.




More information about the macports-dev mailing list