Корневой файл Ubuntu .bashrc

Я устанавливал rvm

и по некоторым причинам я изменил первую строку в корне .bashrc, что там было?

Затем я вставляю if [[ -n "$PS1" ]]; и вижу, что я root, не могу отменить ... Какая строка будет первой, если ... в Ubuntu 12.04 для root?

0
задан 19 January 2013 в 23:04

1 ответ

Мне не очень понятно, что вы сделали, & amp; почему, но я считаю, что это то, что вы просите (примечание: взято из 12.10 - должно быть похоже):

ace@ace2:~/src$ sudo head -n 20 /root/.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
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# 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.
0
ответ дан 19 January 2013 в 23:04

Другие вопросы по тегам:

Похожие вопросы: