求 /etc/bash.bashrc 源码, 在线等, 急

骄傲青蛙 2011-07-09 11:38:11
Hi, 大家

小弟不小心把它 rm 了,
求马, 在线等。

谢谢
...全文
231 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
骄傲青蛙 2011-07-09
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 fontlose 的回复:]

直接到别的机子拷不行吗?
[/Quote]

就是想叫你们copy个給我。。。 :)
骄傲青蛙 2011-07-09
  • 打赏
  • 举报
回复
装完之后, 还是没有这个文件/etc/bash.bashrc
fontlose 2011-07-09
  • 打赏
  • 举报
回复
直接到别的机子拷不行吗?
骄傲青蛙 2011-07-09
  • 打赏
  • 举报
回复
能说一下怎么装吗, 老是出错
stein42 2011-07-09
  • 打赏
  • 举报
回复
重装一下bash
freetstar 2011-07-09
  • 打赏
  • 举报
回复
debian系的

# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi

# sudo hint
if [ ! -e "$HOME/.sudo_as_admin_successful" ]; then
case " $(groups) " in *\ admin\ *)
if [ -x /usr/bin/sudo ]; then
cat <<-EOF
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

EOF
fi
esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found -- $1
return $?
elif [ -x /usr/share/command-not-found ]; then
/usr/bin/python /usr/share/command-not-found -- $1
return $?
else
return 127
fi
}
fi


stein42 2011-07-09
  • 打赏
  • 举报
回复
把bash的软件包解压,里面有。
fontlose 2011-07-09
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 coolesting 的回复:]

引用 3 楼 fontlose 的回复:

直接到别的机子拷不行吗?


就是想叫你们copy个給我。。。 :)
[/Quote]

我用的是Fedroa的 木有/etc/bash.bashrc 只有/etc/bashrc 应该不能用吧...

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧