chiark / gitweb /
bashrc: Kill entitle, and remove some other bits of cruft.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 16 Mar 2006 20:13:36 +0000 (20:13 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 16 Mar 2006 20:17:22 +0000 (20:17 +0000)
bashrc

diff --git a/bashrc b/bashrc
index 82789f5d341624a4f1c2b62f7c5e1947b2de6d90..16b7e8e327ce6cf966497995284d868452943d5c 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -105,54 +105,20 @@ ls () {
   fi
 }
 
-# --- Setting xterm titles ---
-#
-# This doesn't work so well any more. :-(
-
-# if [ -e /usr/lib/bash/xtitle.so ]; then
-#   enable -f /usr/lib/bash/xtitle.so xtitle
-# elif [ -e /usr/local/lib/xtitle.so ]; then
-#   enable -f /usr/local/lib/xtitle.so xtitle
-# elif [ -e $HOME/lib/bash/xtitle.so ]; then
-#   enable -f $HOME/lib/bash/xtitle.so xtitle
-# else
-#   xtitle () { return 1; }
-# fi
-xtitle () { return 1; }
-
-entitle () {
-  local t="`xtitle -q`" st
-  xtitle "$t $1"
-  shift
-  "$@"; st=$?
-  xtitle "$t"
-  return $st
-}
-
 # --- Set up some simple aliases ---
 
 alias cx='chmod a+x'
 alias which="command -v"
 alias ssync="rsync -e ssh"
-alias rootly="entitle root become -g0 root"
+alias rootly="become -g0 root"
 alias r=rootly
 alias re="rootly sensible-editor"
-alias eh="entitle 'Egham Hills 90210' tf eh"
-alias news="entitle Usenet slrn"
-alias splitvt='splitvt -t "`xtitle -q || echo xterm` splitvt"'
 alias pstree="pstree -Ghl"
 alias cdtmp='cd ${TMPDIR-/tmp}'
 alias pushtmp='pushd ${TMPDIR-/tmp}'
 alias e="sensible-editor"
 alias svn="svnwrap svn"
-
-@ () {
-  local t="`xtitle -q`" host="$1"
-  shift
-  xtitle "$t [$host]"
-  ssh "$host" "$@"
-  xtitle "$t"
-}
+alias @="ssh"
 
 # --- Make `xt' start an xterm, maybe logging into a remote host ---