Skip to content

Instantly share code, notes, and snippets.

@gnuhub
Created March 31, 2019 04:56
Show Gist options
  • Save gnuhub/85ce713a32e0cc7e4e287ca784657582 to your computer and use it in GitHub Desktop.
Save gnuhub/85ce713a32e0cc7e4e287ca784657582 to your computer and use it in GitHub Desktop.
fix mesg: ttyname failed: Inappropriate ioctl for device
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
#mesg n || true
tty -s && mesg n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment