bash or zsh?

"Off-topic" but Linux related discussion, about ARCHLabs or other distributions.

Moderator: Founder

bash or zsh?

PostPosted by blaze » Fri Mar 24, 2017 10:17 pm

For a simple user, like me, does it really matter which of the two shells I use for my daily doings? ARCHLabs came with zsh, I changed it to bash just because I have always used bash. Any reason why I should prefer zsh over bash? Might be that this does not make much of a :geek: though. :)
Duck & Cover!!! ARCHLabs is blazing!
User avatar
blaze
 
Posts: 213
Joined: Sat Mar 04, 2017 3:27 am
Running Release: 4.1

Re: bash or zsh?

PostPosted by erikdubois » Sun Mar 26, 2017 6:56 pm

zsh has more possibilities and extra's to expand zsh
i found this nice link that gave me some insight
https://www.slideshare.net/jaguardesignstudio/why-zsh-is-cooler-than-your-shell-16194692
I use it for design(colors) oh-my-zsh provides me with random coloring
Living to learn, learning to live.
Linux fits well in my life's motto.
More info on http://erikdubois.be
Archlabs support articles are on https://goo.gl/AaYI0b
Archlabs support youtube channel is on https://goo.gl/Lovquv
User avatar
erikdubois
Site Admin
Site Admin
 
Posts: 333
Joined: Sun Mar 05, 2017 5:42 am
Location: Belgium

Re: bash or zsh?

PostPosted by blaze » Sun Mar 26, 2017 7:45 pm

Thanks for the link. I liked the slidesow, a cool way of presenting the information. It probably will not matter much for me if I use bash instead of zsh, since I am at a very basic place when it comes too the commandline. Do not misunderstand me, I love my command line, and I actually prefer tui over gui. It is just that I am not so advanced at it, yet. :lol:

But thanks to the link I learned a couple of things, and learning stuff is always positive. :)
Duck & Cover!!! ARCHLabs is blazing!
User avatar
blaze
 
Posts: 213
Joined: Sat Mar 04, 2017 3:27 am
Running Release: 4.1

Re: bash or zsh?

PostPosted by blaze » Tue Mar 28, 2017 11:16 pm

Changed back to zsh, just because I am worth it. :mrgreen:
Duck & Cover!!! ARCHLabs is blazing!
User avatar
blaze
 
Posts: 213
Joined: Sat Mar 04, 2017 3:27 am
Running Release: 4.1

Re: bash or zsh?

PostPosted by blaze » Thu Mar 30, 2017 6:10 pm

Changed back to bash, and will leave it there. Tried to use youtube-dl "cough cough" in zsh, it did not work. Changed back to bash and it worked as expected. :)
Duck & Cover!!! ARCHLabs is blazing!
User avatar
blaze
 
Posts: 213
Joined: Sat Mar 04, 2017 3:27 am
Running Release: 4.1

Re: bash or zsh?

PostPosted by natemaia » Sat Jun 10, 2017 2:29 pm

ZSH, ZSH, ZSH!!!
I really love zsh once you get it setup how you like it, IMO oh-my zsh is a must.
(fish is also good if you want something simpler, less setup, and more like bash, stands for friendly-interactive-shell)
The customizability and functionality of zsh is without a doubt the best. tab completions, auto completions, auto corrections, case insensetive, color coding, options easy directory navigating with .., ..., etc :geek:

Top right = zsh Top left = fish Bottom right = bash Bottom right = sh
Image

I had to remove everything to do with zsh that comes with AL configs and all. (not sure why but it was the only way to get oh-my-zsh working properly)
then i just
Code: Select all
sudo pacman -S zsh


then went to http://ohmyz.sh/ and ran
Code: Select all
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
User avatar
natemaia
ArchLabs Guru
ArchLabs Guru
 
Posts: 75
Joined: Thu Mar 16, 2017 10:14 pm
Location: Canada - British Columbia
Running Release: 5.0

Re: bash or zsh?

PostPosted by erikdubois » Sat Jun 10, 2017 5:40 pm

Or you take the script from Erik Dubois

https://github.com/erikdubois/Archlabs-Nemesis

You will also install
    zsh completions
    zsh-syntax-highlighting
    command-not-found

Do not forget to tell the system that you will be using zsh now via this command
sudo chsh username -s /bin/zsh

then reboot

Your .zshrc is now a new one. The old one is there as a backup.
Copy/paste back this code inside the .zshrc if you like
Code: Select all
alias ls='ls --color=auto'
alias la='ls -a'
alias ll='ls -la'
alias l='ls'                
alias l.="ls -A | egrep '^\.'"     

#fix obvious typo's
alias cd..='cd ..'
alias sl="ls"
alias pdw="pwd"

## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'

#readable output
alias mount='mount |column -t'
alias df='df -h'

alias merge="xrdb -merge ~/.Xresources"

# Aliases for software managment
# pacman or pm
alias pmsyu="sudo pacman -Syu --color=auto"
alias pacman='sudo pacman --color auto'
alias update='sudo pacman -Syu'
# pacaur or pc
alias pcsyu="pacaur -Syu"
# packer or pk
alias pks="packer -S"
alias pksn="packer -S --noconfirm --noedit"
alias pksyu="packer -Syu  --noconfirm --noedit"

neofetch


Then for one thing you will have the neofetch again.
Living to learn, learning to live.
Linux fits well in my life's motto.
More info on http://erikdubois.be
Archlabs support articles are on https://goo.gl/AaYI0b
Archlabs support youtube channel is on https://goo.gl/Lovquv
User avatar
erikdubois
Site Admin
Site Admin
 
Posts: 333
Joined: Sun Mar 05, 2017 5:42 am
Location: Belgium

Re: bash or zsh?

PostPosted by natemaia » Sat Jun 10, 2017 7:43 pm

Thank you for the alias' I use a few of them frequently. I will definitely check out that script
Perhaps this was the issue originally, currently I use /usr/bin/zsh and not sure the difference :?
Also you dont need to call sudo to change your user shell just
Code: Select all
chsh <username>
;)
User avatar
natemaia
ArchLabs Guru
ArchLabs Guru
 
Posts: 75
Joined: Thu Mar 16, 2017 10:14 pm
Location: Canada - British Columbia
Running Release: 5.0


Return to ArchLabs and General Linux Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron