Skip to content

Instantly share code, notes, and snippets.

@zachharkey
Created May 22, 2013 22:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachharkey/5631313 to your computer and use it in GitHub Desktop.
Save zachharkey/5631313 to your computer and use it in GitHub Desktop.
Cpanel .bashrc to prevent error: "stdin: is not a tty"
# .bashrc
# Prevent "stdin: is not a tty" errors
if [ $(expr index "$-" i) -eq 0 ]; then
return
fi
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
@zachharkey
Copy link
Author

@bkuhl
Copy link

bkuhl commented Oct 20, 2014

👍 Thank you for sharing this!

@klazutin
Copy link

Thank you, this came in very helpful!

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