.scarsirc file¶cdwget https://scarsi.web.cern.ch/.scarsirc.bashrc: [ -f ~/.scarsirc ] && . ~/.scarsircPer editare il file .bashrc:
nano .bashrc e pastarla a manoecho "[ -f ~/.scarsirc ] && . ~/.scarsirc" >> .bashrc.bashrc to execute in non interactive shells (such as when scp)¶Add at the very beginning of the file
# Prevent execution in non interactive shell, such as scp
# Source: https://unix.stackexchange.com/questions/154395/running-scp-when-bashrc-of-remote-machine-includes-source-command
[ -z "${PS1:-}" ] && return