devroom.io/content/posts/2010-11-25-hide-last-login-on-bash-login.md

21 lines
597 B
Markdown
Raw Normal View History

2013-03-24 21:28:43 +00:00
---
title: "Hide \"Last login:\" on bash login"
kind: article
slug: hide-last-login-on-bash-login
created_at: 2010-11-25
tags:
- BASH
- MacOSX
---
Everytime I open a new Terminal on my Mac, I get a line like this:
Last login: Thu Nov 25 09:07:55 on ttys004
This annoys me. I don't care when I last opened a local Terminal.
~
To hide this "Last login" message when logging in to bash you need to create a file in your homedirectory.
touch ~/.hushlogin
With this `.hushlogin` file in place you won't see the "Last login" message and go directly to your prompt, where you want to be.