当前位置: 技术问答>linux和unix
求 /etc/bash.bashrc 源码, 在线等, 急
来源: 互联网 发布时间:2016-12-12
本文导语: Hi, 大家 小弟不小心把它 rm 了, 求马, 在线等。 谢谢 | debian系的 # System-wide .bashrc file for interactive bash(1) shells. # To enable the settings / commands in this file for login shells as well,...
Hi, 大家
小弟不小心把它 rm 了,
求马, 在线等。
谢谢
小弟不小心把它 rm 了,
求马, 在线等。
谢谢
|
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 "33]0;${USER}@${HOSTNAME}: ${PWD}07"'
# ;;
#*)
# ;;
#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