Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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).
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.