Uninstall and replace the Bash
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
- David Chiang
- Level 3
- Posts: 102
- Joined: Sun Jul 01, 2007 4:42 am
- Location: Higashiōsaka, Japan
- Contact:
Uninstall and replace the Bash
I'm looking for the safest possible way to change the old shell to the Z shell (zsh). This could get a little complicated, but I want to risk it as the latter is a lot more powerful. In addition, it's also constantly being developed and could soon replace the former.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
LMDE 5 Elsie (64-bit), Linux Kernel 5.10.0, Cinnamon 5.6.8, inxi 3.3.28;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
Re: Uninstall and replace the Bash
Thanks, t42!David Chiang wrote: ⤴Wed Mar 03, 2021 4:49 am I'm looking for the safest possible way to change the old shell to the Z shell (zsh). This could get a little complicated, but I want to risk it as the latter is a lot more powerful. In addition, it's also constantly being developed and could soon replace the former.
Here are several of my 2-cents:
Changing to zsh isn't complicated.
Don't uninstall bash, other things need it (like all those scripts with #!/bin/bash).
Don't use those "helper" things (e.g. oh-my-zsh, etc) I mentioned in that post.
I use terminal history a lot and zsh uses a (surprisingly user-hostile) negative number to return the last N entries:
history -3
= show the last three commands. history 3
= show everything except the first three commands, which is pretty useless; hence my alias h='(){ history "-"$1 }'
, so h 3
shows the last three commands.Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
- David Chiang
- Level 3
- Posts: 102
- Joined: Sun Jul 01, 2007 4:42 am
- Location: Higashiōsaka, Japan
- Contact:
Re: Uninstall and replace the Bash
Thanks t42, but this isn't exactly what I want. I don't want to just switch between the two, I want a permanent transition to zsh.
@Flemur
Many thanks also to you for the warnings, of course i would like to do it without additional software, although something like that is certainly difficult. I don't think it's a good idea to run two shells in parallel, so I'm looking for a way to completely replace the bash.
@Flemur
Many thanks also to you for the warnings, of course i would like to do it without additional software, although something like that is certainly difficult. I don't think it's a good idea to run two shells in parallel, so I'm looking for a way to completely replace the bash.
Last edited by David Chiang on Wed Mar 03, 2021 8:57 am, edited 1 time in total.
LMDE 5 Elsie (64-bit), Linux Kernel 5.10.0, Cinnamon 5.6.8, inxi 3.3.28;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
Re: Uninstall and replace the Bash
As it says in that post:David Chiang wrote: ⤴Wed Mar 03, 2021 8:42 am Thanks t42, but this isn't exactly what I want. I don't want to just switch between the two, I want a permanent transition to zsh.
To make it permanent, enter these
chsh -l
# list the shells
chsh -s /bin/zsh
# use the FULL PATH of zsh returned from chsh -l
Now when you login or start a terminal, you'll be running zsh.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
- David Chiang
- Level 3
- Posts: 102
- Joined: Sun Jul 01, 2007 4:42 am
- Location: Higashiōsaka, Japan
- Contact:
Re: Uninstall and replace the Bash
The problem with this is that it's just a permanent switch to zsh and not a real transition!
LMDE 5 Elsie (64-bit), Linux Kernel 5.10.0, Cinnamon 5.6.8, inxi 3.3.28;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
Re: Uninstall and replace the Bash
Lemme make a note for future reference...David Chiang wrote: ⤴Wed Mar 03, 2021 9:00 amThe problem with this is that it's just a permanent switch to zsh and not a real transition!
permanent switch
means something completely different than real transition
for some reason.Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
- David Chiang
- Level 3
- Posts: 102
- Joined: Sun Jul 01, 2007 4:42 am
- Location: Higashiōsaka, Japan
- Contact:
Re: Uninstall and replace the Bash
No, not for 'some reason', it's for a good reason!
As long as the bash is still installed there's always an easy way back and that's not what I'm talking about.
(Some people obviously have a problem with meaningful reading.)
Last edited by David Chiang on Wed Mar 03, 2021 9:40 am, edited 1 time in total.
LMDE 5 Elsie (64-bit), Linux Kernel 5.10.0, Cinnamon 5.6.8, inxi 3.3.28;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
Re: Uninstall and replace the Bash
Good luckDavid Chiang wrote: ⤴Wed Mar 03, 2021 9:15 amNo, not for 'some reason', it's for a good reason!
As long as the bash is still installed there's always an easy way back and that's not what I'm talking about.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
- David Chiang
- Level 3
- Posts: 102
- Joined: Sun Jul 01, 2007 4:42 am
- Location: Higashiōsaka, Japan
- Contact:
Re: Uninstall and replace the Bash
It has nothing to do with luck, more like an ice-cold calculation, but thank you very much for the hint!
LMDE 5 Elsie (64-bit), Linux Kernel 5.10.0, Cinnamon 5.6.8, inxi 3.3.28;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;
HTPC: ASUS TUF B450M-Pro Gaming, 3.6 GHz AMD Ryzen 7 3700X (8 cores),
AMD Radeon Pro WX 7100, 2 × 4 TiB Seagate BarraCuda ES.3, 4 × 16 GiB HyperX Predator DDR4;