add archimedes to known hosts and set window titles in .bashrc and the screenrc
authorDon Armstrong <don@donarmstrong.com>
Sat, 18 Feb 2006 11:44:02 +0000 (11:44 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sat, 18 Feb 2006 11:44:02 +0000 (11:44 +0000)
.bashrc
.screenrc
.ssh/known_hosts

diff --git a/.bashrc b/.bashrc
index c2d1b09..6ff2b35 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -33,13 +33,13 @@ if [ "$PS1" ]; then
     # \[\033[1;36m\][\w]\n\[\033[0;36m\][\h|\t]$ \[\033[0m\]
 
     # If this is an xterm set the title to user@host:dir
-    #case $TERM in
-    #xterm*)
-    #    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
-    #    ;;
-    #*)
-    #    ;;
-    #esac
+    case $TERM in
+       screen|xterm*)
+            PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+            ;;
+       *)
+            ;;
+    esac
 
     # enable programmable completion features (you don't need to enable
     # this, if it's already enabled in /etc/bash.bashrc).
index b1e590d..a9360e8 100644 (file)
--- a/.screenrc
+++ b/.screenrc
@@ -1,2 +1,3 @@
 startup_message off
+termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
 
index f95cfb4..7dfdb6b 100644 (file)
@@ -107,3 +107,5 @@ comas.linux-aktivaattori.org,80.81.181.51 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAvI
 |1|m5Memx8CMhsq6GwCSTHyKJl2ZL4=|f5Cpj7aEr/dzbOQsFehJd318pgI= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA2QCrBlPcA+xNcFRg8kF3yPD+B871CrTF1//Kc3EZoNjPqxZvwufPN6vo++CfJcWRRAFkweK4/3oqbxTES7aNeW/0QeFiBj+O2FPJHoECj3JMpSOgaRyY8zrTmVZB8IImhdcfHdSE2tZLlt5UOSY82hpIkyA6dwk6WHHhrwq23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