Skip to main content

Show full path in iterm


Show Full Path in Terminal


Opern Iterm, duh!

Go to you home direct
Type: cd ~
Type: mate .bashrc
Type: export PS1=" "
Between the quotation marks, you can add the following lines to customize your Terminal prompt:
  • \d – Current date
  • \t – Current time
  • \h – Host name
  • \# – Command number
  • \u – User name
  • \W – Current working directory (ie: Desktop/)
  • \w – Current working directory, full path (ie: /Users/Admin/Desktop)
export PS1="\u@\h\w$ " which will look like: Admin@MacBook~Desktop/$ "

mate is text mate you need to install it in mac to make it work or you can also use free editors like nano, vi/vim.

Source: soniajahid

Comments

Guy said…
That's a great tip!!! I looked it up in their documentation but didn't find it!!!

Note that nowadays (2015, on Mac OS Yosemite), the way to do it is by modifying ~/.bash_profile rather than ~/.bashrc .

THANKS A BUNCH, YOU GROOVY GUY!
>g.

Popular posts from this blog

Difference between is_file and file_exists

If you want to know that the argument supplied is a file or not use is_file() file_exists() will take both file and directory as input and return true if they exists. So, unless you specifically want to check if the argument passed is a file use is_file otherwise use file_exists()

CGI Environment Variables

So here goes the list of all the Environment variables that are inbuilt and can be used with ur CGI script: Variable Name Value DOCUMENT_ROOT The root directory of your server HTTP_COOKIE The visitor's cookie, if one is set HTTP_HOST The hostname of your server HTTP_REFERER The URL of the page that called your script HTTP_USER_AGENT The browser type of the visitor HTTPS "on" if the script is being called through a secure server PATH The system path your server is running under QUERY_STRING The query string (see GET, below) REMOTE_ADDR The IP address of the visitor REMOTE_HOST The hostname of the visitor (if your server has reverse-name-lookups on; otherwise this is the IP address again) REMOTE_PORT The port the visitor is connected to on the web server REMOTE_USER The visitor's username (for .htaccess-protected pages) REQUEST_METHOD GET or POST REQUEST_URI The interpreted pathname of the requested document or CGI (relative to the document root) SC...

thanks 2 the person who wrote this!

“This is the thing: When you hit 28 or 30, everything begins to divide. You can see very clearly two kinds of people. On one side, people who have used their 20s to learn and grow, to find … themselves and their dreams, people who know what works and what doesn’t, who have pushed through to become real live adults. Then there’s the other kind, who are hanging onto college, or high school even, with all their might. They’ve stayed in jobs they hate, because they’re too scared to get another one. They’ve stayed with men or women who are good but not great, because they don’t want to be lonely. … they mean to develop intimate friendships, they mean to stop drinking like life is one big frat party. But they don’t do those things, so they live in an extended adolescence, no closer to adulthood than when they graduated.  Don’t be like that. Don’t get stuck. Move, travel, take a class, take a risk. There is a season for wildness and a season for settledness, and this is neither. This sea...