Hi!
I wanted to simplify my bash prompt, so I edited my etc/bashrc file. I thought this was the file that would override any other env files. When I opened it, I saw that the way it was setup was not what my prompt looked like, although I forget exactly what was there. But i edited it the way I wanted it
Code:
PS1="$ "
and saved it.
After a recent upgrade to 12.04, auto tab completion was disable in /etc/bash.bashrc. I uncommented the following lines:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
I tried to then run source /etc/bash.bashrc and . /etc/bash.bashrc but neither reloaded the config. They just gave me the error -sh: 1: source: not found.
The bash man page says:
"When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, "
I can see that bash.bashrc is executed because I put echo in it, but .bashrc is not.
gsgleason wrote:export HISTSIZE=10000
export HISTFILESIZE=20000
shopt -s histappend
export PROMPT_COMMAND='history -a'I was just updating my bashrc file (thanks to this thread ) and I'm confused.
Trilby wrote:Ah, yes. It was just a tar, but named ".tar.gz"I may be back in a minute with more info now.Well, that was easy - quite anticlimactic actually:step 1) run 'qmake fred.pro'step 2) run 'make'step 3) have beer.I was lacking some of the dependencies which lead to a failure of the build, but that is still the process.Also, that script that struck me as o
hi
I'm trying to install oracle 10g on opensuse 11.2 , I'm doing the steps that worte here
Oracle on openSUSE - openSUSE
openSUSE 11.2 is not listed , but 11.1 is there and it has the same steps for 11 so I assume that it's the same for 11.2
Mmm very true, I just copied this one from the wiki, to have color output, but I think it wont be possible anymore:https://wiki.archlinux.org/index.php/Co … _all_usersI'll try to understand what is wrong with the one provided in the wiki, because I really prefer having some color.I have restored defaul arch setting ('~/.bashrc' and '/etc/bash.bashrc') and mc is working, th
#
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Create the prompt: Green for a normal user, RED for ROOT
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
PS1="$GREEN\u[$NORMAL\w$GREEN]# $NORMAL"
if [[ $EUID == 0 ]] ; then
PS1="$RED\u[$NORMAL\w$RED]# $NORMAL"
else
On one of my Ubuntu 11.10 servers, when I use sudo -i to become the root user, root's .bashrc is not being executed.