First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 89295
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Fabian Groffen <grobian@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Fabian Groffen <grobian@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Afbeelding 1.pdf screenshot of proposed prompts application/octet-stream Fabian Groffen 2005-04-16 02:11 0000 9.55 KB Details
tcsh-settings.patch This patch changes the default tcsh prompts patch Fabian Groffen 2005-04-22 01:07 0000 1.80 KB Details | Diff
tcsh-settings.patch TCSH prompt patch v2 patch Fabian Groffen 2005-04-22 08:49 0000 1.62 KB Details | Diff
tcsh-settings.patch patch which does not fail on a clean install (v3) patch Fabian Groffen 2005-04-23 03:18 0000 1.62 KB Details | Diff
tcsh-settings.patch2 Patch which sets X window title only if applicable patch Fabian Groffen 2005-05-08 07:08 0000 1.63 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 89295 depends on: Show dependency tree
Bug 89295 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-04-16 02:06 0000
The default prompts provided by tcsh look very non Gentoo-ish in comparison
with the bash equivalents.

Reproducible: Always
Steps to Reproduce:
1. emerge tcsh
2. start tcsh for a user with no .tcshrc
3. watch the prompt

Actual Results:  
got a dull prompt

Expected Results:  
present a Gentoo-ish prompt, like the bash default prompt

I propose bash inspired prompts for tcsh users and root.

user:
set prompt =
"%{\033]0;%m:%~\007%}%{\033[0;1;34m%}(%{\033[0;1;32m%}%m%{\033[0m%}:%{\033[0;1;34m%}%c3%{\033[0;1;34m%})
%{\033[0;1;32m%}%n%{\033[0;1;32m%}%%%{\033[0m%} "

root:
set prompt = "%{\033]0;%#
%m:%~\007%}%{\033[0;1;34m%}(%{\033[0;1;31m%}%m%{\033[0m%}:%{\033[0;1;34m%}%c3%{\033[0;1;34m%})
%{\033[0;1;31m%}%#%{\033[0m%} "

------- Comment #1 From Fabian Groffen 2005-04-16 02:11:13 0000 -------
Created an attachment (id=56431) [details]
screenshot of proposed prompts

A screenshot of the tcsh prompts for users and root with bash inspired colours

------- Comment #2 From Daniel Black 2005-04-21 04:12:06 0000 -------
please include a patch to achieve your desired results.

Just reopen this bug when you've attached the patch.

------- Comment #3 From Fabian Groffen 2005-04-22 01:07:26 0000 -------
Created an attachment (id=56906) [details]
This patch changes the default tcsh prompts

This patch changes the default tcsh prompts:
- it sets a special prompt for the root user
- it sets a prompt for normal users
- it sets the window title accordingly when this is supported

The colours and style of the prompts are much bash alike but with a tcsh
flavour.

------- Comment #4 From Fabian Groffen 2005-04-22 01:09:12 0000 -------
I'm sorry for the hassle.

I attached a patch for the /etc/profile.d/tcsh-settings file where the prompt is set.

------- Comment #5 From Fabian Groffen 2005-04-22 08:49:13 0000 -------
Created an attachment (id=56928) [details]
TCSH prompt patch v2

Oops, if we don't know what kind of terminal emulation we deal with, also don't
use colours.

This is a better version of the patch and makes the previous one obsolete.

------- Comment #6 From Fabian Groffen 2005-04-23 03:18:38 0000 -------
Created an attachment (id=56991) [details]
patch which does not fail on a clean install (v3)

Sorry, I didn't realise that 100 people have 100 different environments.

This time the patch should succesfully work on a default clean installation.

------- Comment #7 From Fabian Groffen 2005-05-08 07:08:30 0000 -------
Created an attachment (id=58352) [details]
Patch which sets X window title only if applicable

This patch always sets the coloured prompt, but only sets the X window title if
appropriate, like in Bash the title is set using PROMPT_COMMAND in
/etc/skel/.bashrc.  Not using precmd here, because that doesn't allow us to
have a path with the homedir substituted by `~'.

------- Comment #8 From Fabian Groffen 2005-09-27 12:25:38 0000 -------
note to self: done

------- Comment #9 From Fabian Groffen 2005-09-30 12:39:13 0000 -------
Fixed in 6.14-r1

First Last Prev Next    No search results available      Search page      Enter new bug