Last active
August 29, 2015 14:07
-
-
Save montanaflynn/389fb325a33f53580fe1 to your computer and use it in GitHub Desktop.
Remove noise from the terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# Ubuntu Message of The Day | |
if test -f /etc/update-motd.d/* | |
chmod -x /etc/update-motd.d/* | |
end | |
# Fish Shell Greeting | |
set line1 "# Don't Show Fish Greeting" | |
set line2 "set --erase fish_greeting" | |
echo -e "\n\n$line1\n$line2" >> ~/.config/fish/config.fish | |
. ~/.config/fish/config.fish | |
# SSH Last Login | |
set line1 "# Don't Show Last Login" | |
set line2 "PrintLastLog no" | |
echo -e "\n\n$line1\n$line2" >> /etc/ssh/sshd_config | |
service ssh restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 10 was very helpful!