Ubuntu中.bashrc默认内容

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples# If not running interactively, don't do anything
case $- in*i*) ;;*) return;;
esac# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth# append to the history file, don't overwrite it
shopt -s histappend# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; thendebian_chroot=$(cat /etc/debian_chroot)
fi# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" inxterm-color|*-256color) color_prompt=yes;;
esac# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yesif [ -n "$force_color_prompt" ]; thenif [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then# We have color support; assume it's compliant with Ecma-48# (ISO/IEC-6429). (Lack of such support is extremely rare, and such# a case would tend to support setf rather than setaf.)color_prompt=yeselsecolor_prompt=fi
fiif [ "$color_prompt" = yes ]; thenPS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
elsePS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1";;
*);;
esac# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; thentest -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"alias ls='ls --color=auto'#alias dir='dir --color=auto'#alias vdir='vdir --color=auto'alias grep='grep --color=auto'alias fgrep='fgrep --color=auto'alias egrep='egrep --color=auto'
fi# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.if [ -f ~/.bash_aliases ]; then. ~/.bash_aliases
fi# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; thenif [ -f /usr/share/bash-completion/bash_completion ]; then. /usr/share/bash-completion/bash_completionelif [ -f /etc/bash_completion ]; then. /etc/bash_completionfi
fi

Ubuntu中.bashrc默认内容相关推荐

  1. linux恢复设置文件夹,将.bashrc文件恢复到Ubuntu中的默认设置

    以下介绍在Ubuntu系统中将.bashrc文件恢复默认设置的方法,如果你在Ubuntu系统中把.bashrc文件搞坏了就按下面的方法恢复bashrc文件. 背景 我有一个Ubuntu VM,我经常用 ...

  2. 如何在Ubuntu中修改默认程序

    简介: 这个新手指南会向你展示如何在 Ubuntu Linux 中修改默认程序对于我来说,安装 VLC 多媒体播放器是安装完 Ubuntu 16.04 该做的事中最先做的几件事之一.为了能够使我双击一 ...

  3. Ubuntu 中Eclipse 默认的OpenJDK 和 SUNJDK问题总结

    今天 在 Ubuntu 12.04 X86 的虚拟机环境中 搭建C++ 的开发环境,默认 下载了 eclipse-cpp-mars-R-linux-gtk.tar.gz 是带有CDT 的: 关于 CD ...

  4. linux更改默认版本,linux - 将某个软件版本设为ubuntu中的默认版本 - Ubuntu问答

    问题描述 我目前在Ubuntu 12.04上安装了2个版本的php. 一个用于使用apt-get安装的php 5.3,另一个用于xampp与php 5.5一起安装 当我执行这些命令时: > wh ...

  5. ubuntu中mysql默认密码_ubuntu服务器16.04中mysql的默认密码

    问题描述 我已经安装了Ubuntu 16.04服务器.默认情况下,Mysql服务器已安装在其中.当我尝试使用mysql -u root -p访问mysql时,由于没有密码,无法登录mysql.有没有默 ...

  6. ubuntu中使用默认apt 安装的java配置JAVA_HOME

    1.进行sudo apt安装 安装默认Java版本(Java 8或以上)sudo apt install -y default-jdk 2.java-version查看版本 安装成功 查看java安装 ...

  7. Ubuntu中的默认shell

    为了加快启动,ubuntu使用的ash,所以在shell中直接用 sh *.sh 有时候会出现语法错误.因为ash只是bash的一个简化版 可以显示的使用bash执行该脚本 bash ×.sh 在sh ...

  8. ubuntu合并终端_如何在Ubuntu中安装多个终端以及更改默认终端

    终端是任何Linux系统的关键部分.它允许您通过shell访问Linux系统.虽说现在的Linux发行版,比如Ubuntu,CentOS等已经基本上可以采用GUI来完成绝大部分一般性的任务.但是,终端 ...

  9. ubuntu linux root,Ubuntu 中的 root 用户:你应该知道的重要事情 | Linux 中国

    原标题:Ubuntu 中的 root 用户:你应该知道的重要事情 | Linux 中国 当你刚开始使用 Linux 时,你将发现与 Windows 的很多不同.其中一个"不同的东西" ...

最新文章

  1. 响应式编程笔记(二):代码编写
  2. 基于 EntityFramework 的数据库主从读写分离架构(2)- 改进配置和添加事务支持...
  3. 个人的关于c++运算符重载的总结
  4. 002 通过send断点分析功能call
  5. IFormattable,ICustomFormatter, IFormatProvider接口
  6. Vue——prop双向绑定解决方案
  7. OpenCV Aruco模块常见问题解答
  8. springboot 打印slf4_SpringBoot 整合 slf4j 日志打印
  9. 浅谈Android项目----JSON解析(4种解析技术详解)
  10. iOS 内存管理arc
  11. 笔记本电脑+USB接口GPS+WM6模拟器+PPC版城际通
  12. oracle no cache,seuqnce的cache,nocache,order,noorder的理解,望指正!
  13. CCD(像素)与视觉系统的基础知识
  14. 微服务体系中的分层设计和领域划分!
  15. 喷淋系统在安装算量软件中如何计算工程量?
  16. Android闹钟最终版【android源码闹钟解析】
  17. 【故事】P2P、BT、ED2k、FTP、磁力链接下载到底是什么鬼?
  18. 关于凸函数求最大值的下标的小讨论(斐波那契优选法/二分法/三分法)
  19. Barcode读取之barcode_para_contrast_min.hdev
  20. Quartus II -Warning (15714):Some pins have incomplete I/O assignments. Refer to the I/O Assignment

热门文章

  1. SurfaceFlinger服务的启动
  2. 计算机散热 测试,散热效果测试,全文评测总结_笔记本电脑_笔记本评测-中关村在线...
  3. 数据科学的原理与技巧 三、处理表格数据
  4. 企业无线局域网,买AP一定需要买AC控制器吗?还有一定要买AP授权吗?
  5. Scrapy爬取猫眼电影评论
  6. getElementsByTagName(“div“).getElementsByTagName(“p“)会报错
  7. http://ac.jobdu.com/problem.php?pid=1020
  8. 计算机学stata,Stata教程(免费)
  9. 使用vn.py怎样进行量化策略开发?
  10. macromedia_Macromedia.com的想法…