X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bash%2Frc;h=7c1a6e7914bdda727e3105bbeb90e338c9fbb124;hb=63879ee81a4d7296ddfe47301d616ff50e643a0d;hp=3e17648afa8fcf10da45358bcb771a7ef7debe77;hpb=dd87c200babeaa8006cbe7df050e1477c84a5aba;p=config%2Fdotfiles.git diff --git a/bash/rc b/bash/rc index 3e17648..7c1a6e7 100644 --- a/bash/rc +++ b/bash/rc @@ -24,6 +24,13 @@ source_debug "sourcing ~/.bash/rc" source_config ~/.shell "" env $host +# Check if this is an interactive shell. Abort if not to prevent problems with +# scp and rcp. Taken from default Debian bashrc. Thanks. +if [[ $- != *i* ]] ; then + return +fi + + # Set the prompt; hostname and current working directory are displayed. # Hostname is displayed in green, current directory in blue. PS1='\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ '