FreeBSD Shell bash 更换
刚刚装完FreeBSD 7.2,更换为习惯用 bash,随便记录下来。步骤如下:
# cd /usr/ports/shell/bash
# make install clean
# chsh -s /usr/local/bin/bash
#logout 重新登录已经更换了
再加几个 linux 下面习惯的命令
#cat /etc/profile
# $FreeBSD: src/etc/profile,v 1.14.30.1.2.1 2009/10/25 01:10:29 kensmith Exp $
#
# System-wide .profile file for sh(1).
#
# Uncomment this to give you the default 4.2 behavior, where disk
# information is shown in K-Blocks
# BLOCKSIZE=K; export BLOCKSIZE
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Read system messages
# msgs -f
# Allow terminal messages
# mesg y
export PATH=$PATH:/usr/local/mysql/bin:/usr/local/apache/bin:/usr/local/rrdtool/bin
alias ls="ls -aG"
alias ll="ls -ailG"
alias vi="/usr/local/bin/vim"
alias lo="cd /usr/local"
#source /etc/profile
呵呵大功告成。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26978/showart_2116640.html
页:
[1]