Created
May 22, 2013 22:02
-
-
Save zachharkey/5631313 to your computer and use it in GitHub Desktop.
Cpanel .bashrc to prevent error: "stdin: is not a tty"
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
# .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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍 Thank you for sharing this!