Skip to content

Instantly share code, notes, and snippets.

@montanaflynn
Last active August 29, 2015 14:07
Show Gist options
  • Save montanaflynn/389fb325a33f53580fe1 to your computer and use it in GitHub Desktop.
Save montanaflynn/389fb325a33f53580fe1 to your computer and use it in GitHub Desktop.
Remove noise from the terminal
#!/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
@fechnert
Copy link

Line 10 was very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment