Reputation: 31
I'm new to Mac and I changed the PS1 environment variable to make it look like Ubuntu. I don't know if I screwed something up or if this is a natural Mac thing, but whenever I do a command, there's an array symbol that goes at the front of the now-executed line. Is there any way of removing this?
[user@MBP:~$ ls
user@MBP:~$
Here's my PS1:
'${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Upvotes: 3
Views: 407
Reputation: 4885
This has nothing to do with your changed PS1 environment variable. This is a terminal setting on your mac. To remove these square brackets ([
) at the start of each line in your terminal, you have to do the following setting:
Open Terminal, click View at the menu list and then Hide Marks
For more information look at this question on apple-stackexchange.
Upvotes: 1