Terminal Charge Mac OS
MacOS is awesome for command line stuff, that’s why real Java programmers love it. But some of the defaults Apple have used make me sad. Where are all the colors? I demand my ls command
be pretty and colorful!
Find Mac Uptime via System Information. Perhaps the quickest way to find your Mac uptime value is to use the OS X System Information utility. To get there, hold the Option key on your keyboard and click the Apple icon at the far left of the OS X Menu Bar. Changing the Mac Terminal title. The basic escape sequence you need to change the Terminal title from the command line is this: echo -n -e ' 0330;YOUR TITLE HERE 007' When you issue this command from the command line of a Mac Terminal window, it will change the title in the Terminal's title bar to 'YOUR TITLE HERE.' Im pretty sure you cant use login non-interactively (same for su) unless youre logging in as the already logged in user or unless the login command is invoked by root. However, if you meet either one of those requirements you would use the -f.
Why is Vim so bland?
I have seen several options on the web on how to adjust colors but some, albeit very good ones, make me uncomfortable with the type of installations that have to be performed in order to enable these themes.
So, after some digging and reading man pages
on terminal coloring and ls
I found a super-simple solution for decent terminal coloring.
If you have below questions then you are at right place:
- Simple Tricks to Improve the Terminal Appearance
- how do you change mac terminal theme
- mac terminal color
ls
- change terminal color linux
- Customize the colors of your Terminal in MacOS
- Customizing the Terminal
Let’s get started.
Option-1)
Step-1.
Open Terminal Window. You should see the color scheme like this:
Step-2.
Command: $ vi ~/.bash_profile
and Enter Below lines and save file.
2 4 6 | export CLICOLOR=1 export GREP_OPTIONS='--color=auto' |
Step-3.
Command: $ source ~/.bash_profile
to initialize profile in current window.
You should see color now:
- CLICOLOR=1 simply enables coloring of your terminal.
- LSCOLORS=… specifies how to color specific items.
Step-4.
Add some more coloring
. Keep previously added lines and add these extra lines. This gives you a nice colored prompt.
2 | PS1='[e[0;33m]u[e[0m]@[e[0;32m]h[e[0m]:[e[0;34m]w[e[0m]$ ' |
And you should see color for username and command line prompt:
Option-2)
- Open terminal window
- Click on Terminal Menu
- Click on Preference
- Modify profile as per below image
- Select profile for
- On startup, open:
- New windows open with
- New tabs open with
I hope this helps you change terminal window colors easily.
Join the Discussion
If you liked this article, then please share it on social media. Still have any questions about an article, leave us a comment.