I am on a shared web host where I do not have permission to edit the global bash configuration file in /ect/bashrc . Unfortunately, there is one line in the global file, mesg y , which puts the terminal in tty mode and makes scp and similar commands unavailable. My local ~./bashrc includes the global file as the source, for example:
# Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
My current workaround uses grep to output a global file, without it, to a local file and use this as a source.
# Source global definitions if [ -f /etc/bashrc ]; then grep -v mesg /etc/bashrc > ~/.bash_global . ~/.bash_global fi
Is there a way to make, for example, a grepped file without the intermediate step of creating the actual file? Something like that?
. grep -v mesg /etc/bashrc > ~/.bash_global
source share