|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Changing shell to bash
Hello guys,
Few days back I read an article on Bash Vs Tcsh. and according to the author bash is far superior to tcsh. So I decided to gice bash a try. Now I'm surprised that bash is not installed by default (no problem). I installed it and changed my shell to bash all of the sudden I'm not able to use many of the commands like shutdown. Can someone tell me what I might have done wrong. |
|
|||
Yes, I installed bash from ports, and I used
Code:
chsh -s /usr/local/bin/bash Commands are not found even as root. |
|
|||
As Weaseal is hinting about, it seems as if your PATH isn't setup properly.. I don't use FreeBSD(or bash, all ksh here), but I kinda assumed they would copy a skeleton .profile over to each users home directory.
Please post the following in code blocks: $ echo $PATH Also: $ set Thanks.. |
|
|||
Did you change for root or user or everyone?
|
|
|||
There was a good article about changing the root shell on the old forum. Basically, you do not want to change root shell. Use toor account instead.
|
|
|||
Quote:
and I think thee are more. |
|
|||
hmmm I did a fresh installation yesterday, installed bash and added user with bash as their default shell, so far every thing works fine.
I wonder the problem I faced was because of ~/.bashrc file that I added to change the prompt. On bash which file should I edit to change the prompt? I like "$" prompt. Install bash from the port and create user with bash as their shell. Is there any other thing I need to do to get bash working properly? which shell would you guys suggest for daily use (I don't have X installed) including scripting. I'm not looking for some shell which provides too many fancy features (some basic should be there). Last edited by rex; 29th August 2008 at 01:49 AM. |
|
||||
Quote:
Quote:
Quote:
I use bash because many scripts work with it and does have quite a few features. If you don't want anything too fancy or don't want an extra port installed, then perhaps just stick with /bin/sh or /bin/tcsh (and I'm not saying there's anything wrong with either of those). |
|
|||
In my home directory I only have .hash_history, no other bash related file. Now what should I do.
|
|
||||
They won't be created automatically, you need to do that yourself. I'll give you my very plain ~/.bash_profile as a starting point:
Code:
export BLOCKSIZE=K export CLICOLOR=yes export EDITOR=ee export PAGER=more export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin export PS1="[\w]$ " [ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips Now for my xterm (Konsole) I use ~/.bashrc: Code:
export GTK2_RC_FILES=$HOME/.gtkrc-2.0 export MAIL_AGENT=$HOME/src/scripts/sendprkmail.sh function tranquil_thoughts_prompt { local WHITE="\[\033[1;37m\]" local BRIGHTGREEN="\[\033[1;32m\]" local GREEN="\[\033[0;32m\]" local CYAN="\[\033[0;36m\]" PS1="${WHITE}.oO(${CYAN}\w${WHITE})Oo.${BRIGHTGREEN}\$ " } tranquil_thoughts_prompt |
|
||||
Quote:
This one? http://www.insectnation.org/howto/bash-vs-tcsh It's not an article, it's a stupid rant. Why do people put this stupid useless fluff on tje web? *sigh*
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
this is one of them.
|
Tags |
bash, shell |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Good Bash/Scripting book? | cwhitmore | Programming | 10 | 22nd December 2017 03:59 PM |
Changing IDE to SCSI | felix001 | FreeBSD General | 3 | 19th May 2009 11:52 AM |
xterm + bash: Make <DEL> delete char under cursor | taylor_venable | OpenBSD General | 7 | 13th December 2008 11:53 PM |
Is bash included in OpenBSD? | bsdnewbie999 | OpenBSD General | 21 | 2nd August 2008 02:57 AM |
Can't use bash on chroot'd openssh environment | jploh | FreeBSD General | 2 | 18th June 2008 02:12 AM |