Removed profile, moved motd to script, enable script in bashrc
This commit is contained in:
parent
8f5060bb65
commit
112a377b1a
2 changed files with 3 additions and 28 deletions
2
bashrc
2
bashrc
|
@ -101,3 +101,5 @@ fi
|
||||||
if [[ -f ~/.update ]]; then
|
if [[ -f ~/.update ]]; then
|
||||||
. ~/.update
|
. ~/.update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source ~/.motd
|
||||||
|
|
27
profile → motd
Normal file → Executable file
27
profile → motd
Normal file → Executable file
|
@ -1,29 +1,3 @@
|
||||||
# ~/.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;35m+++++++++++++++++: \033[0;37mSystem Data\033[0;35m :+++++++++++++++++++
|
||||||
+ \033[0;37mHostname \033[0;35m= \033[1;32m`hostname`
|
+ \033[0;37mHostname \033[0;35m= \033[1;32m`hostname`
|
||||||
|
@ -36,4 +10,3 @@ then
|
||||||
\033[0;31m+ \033[0;37mHave a great day!
|
\033[0;31m+ \033[0;37mHave a great day!
|
||||||
\033[0;35m+++++++++++++++++++++++++++++++++++++++++++++++++++
|
\033[0;35m+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
"
|
"
|
||||||
fi
|
|
Loading…
Reference in a new issue