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.
I see a 'Run' menu at the start menu at lubuntu desk top.
Often when I start looking at history of commands some of chars from command displayed aren't erased, for example:
Whats happening:
prompt$ some_command
prompt$ some_commanother_command
What should have happened:
prompt$ some_command
prompt$ another_command
I can't erase those chars and bash ignores them when executing command, also they disappear when new prompt is being displayed (after p
Is the a way to specify a multi line prompt in Korn shell?
I am planning to swhitch from bash to ksh. In bash I have a very simplistic prompt, but it is 2 line prompt. I hate when input position changes depending on directory depth. My PS1 in bash is:
PS1='$(echo $?): \w\n>> '
Which results in prompt like:
0: /var/log
>> _
Hello everyone, after a few days of inactivity i'm finally back!Anyhow, down to business...I am trying to find out how to display the current visible directory and file count (as one number), and also display the current directory size in my PS1.
Can't change my user bash prompt color, while root prompt does work correctly and changes colors whenever I edit /root/.bashrcMy root and user .bashrc are identical except for the colors:# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
PS1='\[\e[1;33m\][\u @ \@ \w]\$ \[\e[0;32m\]'
#setup
Can't change my user bash prompt color, while root prompt does work correctly and changes colors whenever I edit /root/.bashrcMy root and user .bashrc are identical except for the colors:# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
PS1='\[\e[1;33m\][\u @ \@ \w]\$ \[\e[0;32m\]'
#setup
Can't change my user bash prompt color, while root prompt does work correctly and changes colors whenever I edit /root/.bashrcMy root and user .bashrc are identical except for the colors:# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
PS1='\[\e[1;33m\][\u @ \@ \w]\$ \[\e[0;32m\]'
#setup
Can't change my user bash prompt color, while root prompt does work correctly and changes colors whenever I edit /root/.bashrcMy root and user .bashrc are identical except for the colors:# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
PS1='\[\e[1;33m\][\u @ \@ \w]\$ \[\e[0;32m\]'
#setup