bash

Changing the default editor in FreeBSD

To change your default editor, create and edit the file called .bash_profile in the /root directory:
Edit the EDITOR variable.
  1. # .bash_profile
  2. # Get the aliases and functions
  3.  
  4. if [ -f ~/.bashrc ]; then
  5. . ~/.bashrc
  6. fi
  7.  
  8. # User specific environment and startup programs
  9.  
  10. PATH=$PATH:$HOME/bin
  11.  
  12. export PATH
  13. unset USERNAME
  14. export EDITOR=nano

Changing the default shell in FreeBSD

To change the default shell you can just type this:
  1. [root@www ~]# chsh -s /usr/local/bin/bash
Or just type chsh and edit it:
  1. #Changing user information for root.
  2. Login: root
  3. Password: $1$guOOMnQb$/hC8LRJUNUPAA7buETDc4.
  4. Uid [#]: 0
  5. Gid [# or name]: 0
  6. Change [month day year]:
  7. Expire [month day year]:
  8. Class:
  9. Home directory: /root
  10. Shell: /usr/local/bin/bash
  11. Full Name: Charlie &
  12. Office Location:
  13. Office Phone:
  14. Home Phone:
  15. Other information:
Syndicate content