I would like to set the Max OS X Terminal theme for Ubuntu Terminal. I really like the fonts and the colors. This is how the Mac Terminal does look:
There are few things that I want to see in the Ubuntu Terminal:
I want to replace
username@desktop:~/Dropbox$
with the username and the computer name in this format:desktop:Dropbox username$
I want to change the Terminal font to look like in the Mac terminal.
- I want to change the color scheme to be like the Mac terminal color scheme.
Is this possible? How?
Note that I don't want to change the Ubuntu theme. I use Unity with default theme, but I want to change only the terminal settings because it's the most used application by me.
Changing the prompt style
To change the prompt format, add the following lines in
~/.bashrc
file:Now the terminal looks like this:
Terminal font
Intall Monaco font. You can run this in Terminal:
Warning: You may have issues with this font in browser. This is discussed here.
Then set the Terminal font to use Monacao: go to
Edit -> Profile Preferences
and change the font:Color scheme
Save the following content into an XML file:
Then import the color scheme running the following command:
...where
terminal-color-scheme.xml
is the name of the XML file that contains the content above.After that, your terminal will look like below:
Most of us work with a shell prompt. By default most Linux distro displays hostname and current working directory. You can easily customize your prompt to display information important to you.Prompt is control via a special shell variable.
To display current prompt setting use-
Output will be like below , yours would be same if you did not have played with it before-
To modify
computername@username
toUsername
use-to make this change permanent use edit /.bashrc by-
and append the line -
If you want to add other things like date and all to prompt let me know i will add other informations.
Your second question is about to change fonts , for that install unity tweak tool either from Ubuntu software center or via terminal as -
and and change the the font and size as per to your disire.
thirdly i dont have any idea to change the color scheme of ubuntu as MAC as, I am not a MAC fan , but yeah you can change your prompt color as explained below-
To set a green color prompt, type the following command:
Change the color code as per to your desire from the table shown below.
And if you want to change complete font color for terminal go to terminal - edit - preference and use cutom font color as -
That's what all i know , I dont know how can you change it for patterns as show in your question..
Extra advice - For exactly making it looks like mac use http://www.noobslab.com/2013/10/mac-os-x-mbuntu-1310-pack-is-ready.html .
Hope it helped you.
For the prompt (the part you show as desktop:Dropbox username$) see this document at The Linux Documentation project: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html It describes how to set the PS1 and how to set colors for the prompt (if you wanted that as well)
The font, you will need to find out what font the mac osx terminal uses and get it installed (if not already in Ubuntu) and then you can set it using the preferences in Terminal.
For the colors of the files you will need to work with dir_colors. Here is a link to the man page: http://man7.org/linux/man-pages/man5/dir_colors.5.html
Have you seen this regarding a Mac theme for Ubuntu? http://www.noobslab.com/2013/10/mac-os-x-mbuntu-1310-pack-is-ready.html
Yes, all this can be done but you will need to do some configuration.
You may also wish to become used to working with a customized .bashrc. Here is a nice tutorial: http://news.softpedia.com/news/How-to-Customize-the-Shell-Prompt-40033.shtml
As with all things, keep back-ups of the original files, just in case.