From 112a377b1a0b2fc1777274488a9a7e4a656d3f70 Mon Sep 17 00:00:00 2001 From: Amarpreet Minhas Date: Thu, 11 Sep 2014 16:15:12 -0400 Subject: [PATCH] Removed profile, moved motd to script, enable script in bashrc --- bashrc | 2 ++ profile => motd | 29 +---------------------------- 2 files changed, 3 insertions(+), 28 deletions(-) rename profile => motd (50%) mode change 100644 => 100755 diff --git a/bashrc b/bashrc index 8b8e225..678bc6b 100644 --- a/bashrc +++ b/bashrc @@ -101,3 +101,5 @@ fi if [[ -f ~/.update ]]; then . ~/.update fi + +source ~/.motd diff --git a/profile b/motd old mode 100644 new mode 100755 similarity index 50% rename from profile rename to motd index c3599ae..d5e5790 --- a/profile +++ b/motd @@ -1,30 +1,4 @@ -# ~/.profile: executed by the command interpreter for login shells. -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. -# see /usr/share/doc/bash/examples/startup-files for examples. -# the files are located in the bash-doc package. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. -#umask 022 - -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" -fi - - -if [ -n "$SSH_TTY" ] -then - echo -e " +echo -e " \033[0;35m+++++++++++++++++: \033[0;37mSystem Data\033[0;35m :+++++++++++++++++++ + \033[0;37mHostname \033[0;35m= \033[1;32m`hostname` \033[0;35m+ \033[0;37mKernel \033[0;35m= \033[1;32m`uname -r` @@ -36,4 +10,3 @@ then \033[0;31m+ \033[0;37mHave a great day! \033[0;35m+++++++++++++++++++++++++++++++++++++++++++++++++++ " -fi