Update dotfiles/.profile
This commit is contained in:
parent
a1005a31ce
commit
276f126ea1
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ] ||
|
||||||
|
|
||||||
### MOTD
|
### MOTD
|
||||||
# Add file named .hushlogin in the user's home directory to disable the MOTD
|
# Add file named .hushlogin in the user's home directory to disable the MOTD
|
||||||
if [ ! -f ~/.hushlogin ]; then
|
if [ ! -f ~/.hushlogin ] && [ "$SHLVL" -eq 1 ]; then
|
||||||
if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [ "$SHLVL" -eq 1 ] && [[ $- == *i* ]]; } || command -v qubes-vmexec > /dev/null || command -v qubes-dom0-update > /dev/null || { [ -d /Applications ] && [ -d /System ]; }; then
|
if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [[ $- == *i* ]]; } || command -v qubes-vmexec > /dev/null || command -v qubes-dom0-update > /dev/null || { [ -d /Applications ] && [ -d /System ]; }; then
|
||||||
if { [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; } && [[ "$(hostname)" != *'-minimal' ]]; then
|
if { [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; } && [[ "$(hostname)" != *'-minimal' ]]; then
|
||||||
. "$HOME/.local/motd.sh"
|
. "$HOME/.local/motd.sh"
|
||||||
# TODO - -- services
|
# TODO - -- services
|
||||||
|
|
Loading…
Reference in a new issue