[arch-releng] [PATCH] Ust zsh as default interactive shell
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration. Signed-off-by: Pierre Schmitz <pierre@archlinux.de> --- This might look controversial, so let me explain. As our new install method is based on the usage of various cli tools our plain ash setup gets a little inconvinient. This patch adds zsh and a feature rich default config. We will get menu based completion and inline help for e.g. pacman but also our install scripts, rc.d and a lot of other tools. This should make the iso easier to use and more accessable. I haven't found any real downside here, so let me know if you can think of any. Also please try it first if you haven't yet. E.g. try things like pacstrap -<tab> etc.. If there are no major concerns I would suggest we try this for at least one release. With our monthly releases we can simply revert this for the next one if user feedback is all negative. configs/releng/build.sh | 5 ++++- configs/releng/packages.i686 | 2 ++ configs/releng/packages.x86_64 | 2 ++ 3 Dateien geändert, 8 Zeilen hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 5352000..f1b1693 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -153,7 +153,10 @@ make_customize_root_image() { -r 'locale-gen' \ run mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ - -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" arch' \ + -r 'usermod -s /bin/zsh root' \ + run + mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ + -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \ run : > ${work_dir}/build.${FUNCNAME} fi diff --git a/configs/releng/packages.i686 b/configs/releng/packages.i686 index aaf0f37..0b23596 100644 --- a/configs/releng/packages.i686 +++ b/configs/releng/packages.i686 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios haveged hdparm @@ -45,3 +46,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh diff --git a/configs/releng/packages.x86_64 b/configs/releng/packages.x86_64 index 24f655f..09c3c94 100644 --- a/configs/releng/packages.x86_64 +++ b/configs/releng/packages.x86_64 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios grub-efi-x86_64 haveged @@ -46,3 +47,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh -- 1.7.11.3
On Sat, Jul 28, 2012 at 01:13:54PM +0200, Pierre Schmitz wrote:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
I think this is fine. It'll throw some people off, but ZSH really is a better interactive shell. sysresccd does this and its rather nice. It isn't like bash won't be available if it becomes _that_ unpleasant for the user.
This might look controversial, so let me explain. As our new install method is based on the usage of various cli tools our plain ash setup gets a little inconvinient. This patch adds zsh and a feature rich default config. We will get menu based completion and inline help for e.g. pacman but also our install scripts, rc.d and a lot of other tools. This should make the iso easier to use and more accessable.
I haven't found any real downside here, so let me know if you can think of any. Also please try it first if you haven't yet. E.g. try things like pacstrap -<tab> etc..
If there are no major concerns I would suggest we try this for at least one release. With our monthly releases we can simply revert this for the next one if user feedback is all negative.
configs/releng/build.sh | 5 ++++- configs/releng/packages.i686 | 2 ++ configs/releng/packages.x86_64 | 2 ++ 3 Dateien geändert, 8 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 5352000..f1b1693 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -153,7 +153,10 @@ make_customize_root_image() { -r 'locale-gen' \ run mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ - -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" arch' \ + -r 'usermod -s /bin/zsh root' \ + run + mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ + -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \ run : > ${work_dir}/build.${FUNCNAME} fi diff --git a/configs/releng/packages.i686 b/configs/releng/packages.i686 index aaf0f37..0b23596 100644 --- a/configs/releng/packages.i686 +++ b/configs/releng/packages.i686 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios haveged hdparm @@ -45,3 +46,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh diff --git a/configs/releng/packages.x86_64 b/configs/releng/packages.x86_64 index 24f655f..09c3c94 100644 --- a/configs/releng/packages.x86_64 +++ b/configs/releng/packages.x86_64 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios grub-efi-x86_64 haveged @@ -46,3 +47,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh -- 1.7.11.3
On Sat, Jul 28, 2012 at 8:30 AM, Dave Reisner <d@falconindy.com> wrote:
On Sat, Jul 28, 2012 at 01:13:54PM +0200, Pierre Schmitz wrote:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
I think this is fine. It'll throw some people off, but ZSH really is a better interactive shell. sysresccd does this and its rather nice. It isn't like bash won't be available if it becomes _that_ unpleasant for the user.
i would suggest making it *very* obvious the current shell is not bash, eg. maybe with a brief blurb about what the user can do: "Welcome to Archlinux. You are currently in an interactive <bold>ZSH</bold>, and as such you may: [...] [...] [...] Enjoy your stay!" ... as it would certainly throw me off. not that it would take to long to figure out, but avoiding some `WTF?` time would be preferable. Bash is fairly defacto when it comes to "the default shell on the image i just started" -- C Anthony
Am 29.07.2012 21:09, schrieb C Anthony Risinger:
On Sat, Jul 28, 2012 at 8:30 AM, Dave Reisner <d@falconindy.com> wrote:
On Sat, Jul 28, 2012 at 01:13:54PM +0200, Pierre Schmitz wrote:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
I think this is fine. It'll throw some people off, but ZSH really is a better interactive shell. sysresccd does this and its rather nice. It isn't like bash won't be available if it becomes _that_ unpleasant for the user.
i would suggest making it *very* obvious the current shell is not bash, eg. maybe with a brief blurb about what the user can do:
"Welcome to Archlinux. You are currently in an interactive <bold>ZSH</bold>, and as such you may:
[...] [...] [...]
Enjoy your stay!"
... as it would certainly throw me off. not that it would take to long to figure out, but avoiding some `WTF?` time would be preferable. Bash is fairly defacto when it comes to "the default shell on the image i just started"
It would be on the news. I'd say we should see what feedback we will get before taking any more actions.ZSH is less different as an interactive shell than you make it sound. Greetings, Pierre -- Pierre Schmitz, https://pierre-schmitz.com
On Jul 28, 2012 1:14 PM, "Pierre Schmitz" <pierre@archlinux.de> wrote:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
This might look controversial, so let me explain. As our new install
I haven't found any real downside here, so let me know if you can think of any. Also please try it first if you haven't yet. E.g. try things like
method is based on the usage of various cli tools our plain ash setup gets a little inconvinient. This patch adds zsh and a feature rich default config. We will get menu based completion and inline help for e.g. pacman but also our install scripts, rc.d and a lot of other tools. This should make the iso easier to use and more accessable. Makes sense to me. pacstrap -<tab> etc..
If there are no major concerns I would suggest we try this for at least
one release. With our monthly releases we can simply revert this for the next one if user feedback is all negative. I used zsh for some time, even though I don't any more, I don't see any downsides that would apply to the instal medium.
configs/releng/build.sh | 5 ++++- configs/releng/packages.i686 | 2 ++ configs/releng/packages.x86_64 | 2 ++ 3 Dateien geändert, 8 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 5352000..f1b1693 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -153,7 +153,10 @@ make_customize_root_image() { -r 'locale-gen' \ run mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ - -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" arch' \ + -r 'usermod -s /bin/zsh root' \ + run + mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ + -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \ run : > ${work_dir}/build.${FUNCNAME} fi diff --git a/configs/releng/packages.i686 b/configs/releng/packages.i686 index aaf0f37..0b23596 100644 --- a/configs/releng/packages.i686 +++ b/configs/releng/packages.i686 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios haveged hdparm @@ -45,3 +46,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh diff --git a/configs/releng/packages.x86_64 b/configs/releng/packages.x86_64 index 24f655f..09c3c94 100644 --- a/configs/releng/packages.x86_64 +++ b/configs/releng/packages.x86_64 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios grub-efi-x86_64 haveged @@ -46,3 +47,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh -- 1.7.11.3
On 07/28/2012 08:13 AM, Pierre Schmitz wrote:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
This might look controversial, so let me explain. As our new install method is based on the usage of various cli tools our plain ash setup gets a little inconvinient. This patch adds zsh and a feature rich default config. We will get menu based completion and inline help for e.g. pacman but also our install scripts, rc.d and a lot of other tools. This should make the iso easier to use and more accessable.
I haven't found any real downside here, so let me know if you can think of any. Also please try it first if you haven't yet. E.g. try things like pacstrap -<tab> etc..
If there are no major concerns I would suggest we try this for at least one release. With our monthly releases we can simply revert this for the next one if user feedback is all negative.
configs/releng/build.sh | 5 ++++- configs/releng/packages.i686 | 2 ++ configs/releng/packages.x86_64 | 2 ++ 3 Dateien geändert, 8 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 5352000..f1b1693 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -153,7 +153,10 @@ make_customize_root_image() { -r 'locale-gen' \ run mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ - -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" arch' \ + -r 'usermod -s /bin/zsh root' \ + run + mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \ + -r 'useradd -m -p "" -g users -G "audio,disk,optical,wheel" -s /bin/zsh arch' \ run : > ${work_dir}/build.${FUNCNAME} fi diff --git a/configs/releng/packages.i686 b/configs/releng/packages.i686 index aaf0f37..0b23596 100644 --- a/configs/releng/packages.i686 +++ b/configs/releng/packages.i686 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios haveged hdparm @@ -45,3 +46,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh diff --git a/configs/releng/packages.x86_64 b/configs/releng/packages.x86_64 index 24f655f..09c3c94 100644 --- a/configs/releng/packages.x86_64 +++ b/configs/releng/packages.x86_64 @@ -14,6 +14,7 @@ efibootmgr elinks gnu-netcat gptfdisk +grml-zsh-config grub-bios grub-efi-x86_64 haveged @@ -46,3 +47,4 @@ vpnc wireless_tools wpa_actiond zd1211-firmware +zsh
I never used zsh for serious things. ACK here. -- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
Am 28.07.2012 13:13, schrieb Pierre Schmitz:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
This might look controversial, so let me explain. As our new install method is based on the usage of various cli tools our plain ash setup gets a little inconvinient.
We don't have ash, we have bash.
This patch adds zsh and a feature rich default config. We will get menu based completion and inline help for e.g. pacman but also our install scripts, rc.d and a lot of other tools. This should make the iso easier to use and more accessable.
Using a shell that is only known to a fraction of users doesn't make the image "more accessible".
I haven't found any real downside here, so let me know if you can think of any. Also please try it first if you haven't yet. E.g. try things like pacstrap -<tab> etc..
I never used zsh, so I don't know how much its syntax differs from bash, or from any POSIX shell. As a new user, I might find this irritating.
Am 30.07.2012 13:11, schrieb Thomas Bächler:
Am 28.07.2012 13:13, schrieb Pierre Schmitz:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
This might look controversial, so let me explain. As our new install method is based on the usage of various cli tools our plain ash setup gets a little inconvinient.
We don't have ash, we have bash.
Sorry for the typo. I also did one in the subject. :-)
This patch adds zsh and a feature rich default config. We will get menu based completion and inline help for e.g. pacman but also our install scripts, rc.d and a lot of other tools. This should make the iso easier to use and more accessable.
Using a shell that is only known to a fraction of users doesn't make the image "more accessible".
I don't get your argument here.
I haven't found any real downside here, so let me know if you can think of any. Also please try it first if you haven't yet. E.g. try things like pacstrap -<tab> etc..
I never used zsh, so I don't know how much its syntax differs from bash, or from any POSIX shell. As a new user, I might find this irritating.
I am sorry, but as you did not at least try it I cannot really value your concern here. Also zsh is posix compatible. And I really doubt that bash users will have major difficulties or will even notice using zsh. Anyway, as I already said, this is worth a try. Depending on users feedback I would be fine to remove zsh again next month. This way we also wont rely on speculations on what users might or might not do. Greetings, Pierre -- Pierre Schmitz, https://pierre-schmitz.com
On Mon, Jul 30, 2012 at 6:33 AM, Pierre Schmitz <pierre@archlinux.de> wrote:
Am 30.07.2012 13:11, schrieb Thomas Bächler:
Am 28.07.2012 13:13, schrieb Pierre Schmitz:
This installs zsh and sets it as default for root and the arch user. grml-zsh-config is installed as a userfriendly default configuration.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> ---
This might look controversial, so let me explain. As our new install method is based on the usage of various cli tools our plain ash setup gets a little inconvinient.
We don't have ash, we have bash.
Sorry for the typo. I also did one in the subject. :-)
This patch adds zsh and a feature rich default config. We will get menu
based completion and inline help for e.g. pacman but also our install scripts, rc.d and a lot of other tools. This should make the iso easier to use and more accessable.
Using a shell that is only known to a fraction of users doesn't make the image "more accessible".
I don't get your argument here.
I haven't found any real downside here, so let me know if you can think of any. Also please try it first if you haven't yet. E.g. try things like pacstrap -<tab> etc..
I never used zsh, so I don't know how much its syntax differs from bash, or from any POSIX shell. As a new user, I might find this irritating.
I am sorry, but as you did not at least try it I cannot really value your concern here. Also zsh is posix compatible. And I really doubt that bash users will have major difficulties or will even notice using zsh.
Anyway, as I already said, this is worth a try. Depending on users feedback I would be fine to remove zsh again next month. This way we also wont rely on speculations on what users might or might not do.
Greetings,
Pierre
-- Pierre Schmitz, https://pierre-schmitz.com
I've used both zsh and bash, and for day to day use I don't notice a difference. However I'm not seeing the reasoning behind switching to zsh
On Mon, 30 Jul 2012 08:16:25 -0500 Nicholas MIller <nick.kyky@gmail.com> wrote:
I'm not seeing the reasoning behind switching to zsh
maybe you should actually read the opening post of this thread...
Am 30.07.2012 13:33, schrieb Pierre Schmitz:
I never used zsh, so I don't know how much its syntax differs from bash, or from any POSIX shell. As a new user, I might find this irritating.
I am sorry, but as you did not at least try it I cannot really value your concern here. Also zsh is posix compatible. And I really doubt that bash users will have major difficulties or will even notice using zsh.
I don't know zsh, but you say it is POSIX compatible, so go ahead.
While bash is the most "vanilla"/"default" shell out there, zsh with the grml configuration is comfortable and nice. +1 from me. - Alexander
Hi, is the iso intended to be used as rescue/live CD/USB? If so, there is a problem. If a user does not have zsh intalled then he cannot chroot into his root if he does not have zsh installed. Or there is a cure for it? Thanks Arokux
Am 06.08.2012 11:11, schrieb Arokux B.:
If a user does not have zsh intalled then he cannot chroot into his root if he does not have zsh installed. Or there is a cure for it?
Yes, it's called 'man chroot'.
On Mon, Aug 6, 2012 at 11:11 AM, Arokux B. <arokux@gmail.com> wrote:
Hi,
is the iso intended to be used as rescue/live CD/USB? If so, there is a problem. If a user does not have zsh intalled then he cannot chroot into his root if he does not have zsh installed. Or there is a cure for it?
Thanks Arokux
arch-chroot deals with this correctly (i.e. starts /bin/sh if you don't specify anything). -t
Thanks for the quick answers.
participants (10)
-
Alexander Rødseth
-
Arokux B.
-
C Anthony Risinger
-
Dave Reisner
-
Dieter Plaetinck
-
Gerardo Exequiel Pozzi
-
Nicholas MIller
-
Pierre Schmitz
-
Thomas Bächler
-
Tom Gundersen