1
vote
2answers
40 views

Subdirectories in prompt?

I'm working on making my prompt as useful as possible. Right now, it contains the date, time, and directory, along with a colored divider line so I can easily see where each batch of input starts. I ...
0
votes
2answers
55 views

iTerm2 & Terminal Giving >> [33[01;32m]u@h[33[00m]:[33[01;36m]w[33[00m]$

I opened iTerm2 and it changed the prompt to.. [33[01;32m]u@h[33[00m]:[33[01;36m]w[33[00m]$ I have no idea how this happened, and I can't figure out how to change it. I went to terminal ...
2
votes
1answer
205 views

Prevent zsh from setting the current prompt to the name of the variable that points to this path

This is related to Zsh: Open a new tab in the same directory. I have installed oh-my-zsh recently and it certainly kicks. I have some custom variables, like $WORKSPACE which I use to get around ...
4
votes
1answer
808 views

Change hostname and prompt in OS X terminal

On a Mac the hostname and prompt is: workstation:~ thomas$ On Ubuntu Linux it would be: thomas@workstation:~$ How can I make the OS X prompt look like the Ubuntu one?
6
votes
1answer
251 views

Custom prompt botched during history and control-a in OS X's Terminal.app using Bash

I customized my prompt in .bash_profile to look like this: export PS1="\w \e[0;32m\$(vcprompt -f '[%n:%b]')\e[m\$ " Now, when I press up arrow to go back through history, find the one I want, then ...
2
votes
2answers
2k views

~/.profile not being executed when Terminal opens? [OS X 10.6.8]

Somehow my bash prompt got changed to "elementary:~ steven$" and I want to change it back to the default prompt. I've added the following first to ~/.bashrc then to ~/.profile: export PS1="\s-\v\$ " ...
1
vote
2answers
1k views

Mac OS X Lion terminal places command prompt in the middle of PS1 envvar

Before I installed Lion opening a terminal window placed the cursor at the end of the prompt like so: Wed Aug 31{shirsch4@Susan-Hirschs-iMac}/projects/perl/perl/lib/Utils--><cursor> Now ...