Skip to content

Instantly share code, notes, and snippets.

@zachharkey
Created May 22, 2013 22:02
Show Gist options
  • 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
@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