bash_profile 配置记录

本文详细探讨了.bash_profile的配置,这是Linux环境中个性化Shell设置的重要文件。通过配置.bash_profile,用户可以定制环境变量、别名和路径,提升命令行交互效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

.bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
unset USERNAME

# lang config
export LANG="en_US.UTF-8"
export SUPPORTED="en_US.UTF-8:en_US:en"

export CLICOLOR=1
export LSCOLORS="gxfxcxdxbxegedabagacad"
#export PS1="[\[\033[35m\]\u\[\033[00m\]@\[\033[33m\]china-No.1\[\033[00m\]: \[\033[36m\]\W \[\033[00m\]] "
export PS1="[\[\033[35m\]\u\[\033[00m\]@\[\033[33m\]313-ManPlub\[\033[00m\]: \[\033[36m\]\W \[\033[00m\]] "
export TERM=xterm-color
#export TERM=xterm-256color


## alias config
alias grep='grep --color'
alias egrep='egrep --color'
alias fgrep='fgrep --color'
alias ls='ls --color=auto'
alias ll='ls -l --color=auto'
alias eftp='ttt(){ echo "ftp://`hostname``readlink -f $1`";};ttt'
alias iconv8="iconv -c -f gbk -t utf-8"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值