LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: Which shell do you prefer
bash 10 76.92%
zsh 2 15.38%
other (give reasons) 1 7.69%
Voters: 13. You may not vote on this poll

Reply
  Search this Thread
Old 05-26-2005, 10:29 AM   #1
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 76
Bash or Zsh


I'm just wondering which shell you guys prefer and why. I have been playing round with zsh and I enjoy using it because I think it has better command completion compared to bash.
 
Old 05-26-2005, 06:31 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Bash, cause I'm still to newbie to go trying to change the shell
 
Old 05-26-2005, 06:46 PM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
I used to like zsh but i prefer tcsh. zsh has a lot more features than bash, if you are hesitating between bash and zsh, then go for zsh. The syntax is similar to bash anyway, export var=xxx.
 
Old 05-27-2005, 01:58 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Original Poster
Rep: Reputation: 76
I am currently test driving it and so far I am impressed. Does tcsh have command completion coz I have noticed that csh doesn't (correct me if I am wrong).
 
Old 05-27-2005, 04:39 AM   #5
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
tcsh and csh do have command completion i source the completion file /etc/complete.sh(the location could be different on other distros) to have it.

here is my old tcshrc in Debian
Code:
# aliases
alias la	'ls -la'
alias df	'df -H'
alias cls	'clear'
alias lo	'clear && logout'
alias lsc	'ls -hs'
alias free     'free -m'
alias utz	'tar zxvf'
alias utj	'tar jxvf'
alias cd.	'cd ..'
alias cd..	'cd ../..'
alias cd...	'cd ../../..'
alias cd....	'cd ../../../..'
alias ls	 'ls --color=auto'

# environment variables
setenv PAGER		              less
setenv EDITOR		             vim
setenv BLOCKSIZE	          M
setenv WWW_HOME		     'http://google.com'
setenv LANG		              en_US
setenv JAVA_HOME                 /usr/lib/j2sdk1.5-sun

limit coredumpsize 0

set nobeep

#unset autologout

set path = (/usr/local/bin /usr/bin /bin /usr/bin/X11 /usr/games $HOME/bin)

if ($?tcsh && $?prompt) then

	bindkey "\e[1~" beginning-of-line # Home
	bindkey "\e[7~" beginning-of-line # Home rxvt
	bindkey "\e[2~" overwrite-mode    # Ins
	bindkey "\e[3~" delete-char       # Delete
	bindkey "\e[4~" end-of-line       # End
	bindkey "\e[8~" end-of-line       # End rxvt

        # completion stuff
	set autoexpand
	set autolist
	source /etc/complete.tcsh

	set prompt = "%{\033[32m%}${USER}%{\033[0m%}@%m %{\033[35m%}(%~)%{\033[0m%} # "

endif
 
Old 05-27-2005, 08:16 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Original Poster
Rep: Reputation: 76
I see, I will have to try out tcsh sometime soon.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zsh as root? abrouwers Slackware 7 08-13-2005 03:14 PM
Change /bin/bash to /bin/zsh Smokey Slackware 12 07-14-2004 01:06 AM
zsh transparency Ops Linux - Software 1 07-08-2004 10:01 AM
zsh equivalents in bash saurya_s Linux - General 1 01-04-2004 03:06 AM
Zsh rch Linux - General 0 05-22-2003 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration