MAKEFLAGS: Fix forgotten `export'.
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index afd754d..848c00b 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -178,22 +178,26 @@ if echo x|GREP_OPTIONS="--exclude=y" grep -q x 2>/dev/null;then
        #export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn"
 fi
 if [ -n "$PS1" ];then  # set only in interactive sessions
-       export PS1='[bash]${LOGNAME}@${HOSTNAME}:${PWD}# '
+       if [ ! -f /MOCK ];then
+               export PS1='[bash]${LOGNAME}@${HOSTNAME}:${PWD}# '
+       else
+               export PS1='[bash]${LOGNAME}@MOCK-'"`cat /MOCK`"':${PWD}# '
+       fi
        export PS1='\[\017\]'"$PS1"     # \017=std charmap
        export PS1='\[\033%G\]'"$PS1"   # \033%G=utf-8
        # Do not: kbd_mode -u # utf-8
        # as it breaks keyboard state in X and it is not permitted for non-root.
-       fi
+fi
 export MINICOM="-m -c on"      # metakeys+color
 export HISTSIZE=100000
 export HISTFILESIZE="$HISTSIZE"
 export GDBHISTFILE="$HOME/.gdb_history"
 export CVS_RSH="ssh"
 export TZ=":/usr/share/zoneinfo/Europe/Prague"
-MAKEFLAGS=
+export MAKEFLAGS=
 cpus="`getconf _NPROCESSORS_ONLN`"
 if [ -n "$cpus" ];then
-       MAKEFLAGS="$MAKEFLAGS -j$[$cpus+1]"
+       MAKEFLAGS="$MAKEFLAGS -j$[$cpus*3/2]"
 fi
 unset cpus
 # Do not: grep -w "$TERM" /etc/termcap >/dev/null || export TERM=vt220
@@ -371,6 +375,10 @@ if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi
 
 # Interactive part:
 for key in $HOME/.ssh/id_dsa;do
+
+       # DISABLED now.
+       continue
+
        [ -r "$key" ] || continue
        # Do not: [ -n "$SSH_TTY" ] && continue
        # as we may want foreign SSH keys too.