chiark / gitweb /
Import some dotfiles from zealot
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 16 Dec 2015 21:08:41 +0000 (21:08 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 16 Dec 2015 21:08:41 +0000 (21:08 +0000)
dot/bashrc [new file with mode: 0644]
dot/cvsrc [new file with mode: 0644]
dot/emacs [new file with mode: 0644]
dot/gitconfig [new file with mode: 0644]

diff --git a/dot/bashrc b/dot/bashrc
new file mode 100644 (file)
index 0000000..a173c4b
--- /dev/null
@@ -0,0 +1,33 @@
+# Ian Jackson's shell rc
+
+if [ "x$TRNINIT" = x ]; then
+ . $HOME/.configs/setenvir
+fi
+
+hostname_completion_file=~/.hosts 
+
+export PWD
+
+# My own functions
+ls() { /bin/ls -FC "$@"; }
+ll() { /bin/ls -FCla "$@"; }
+setprompt() {
+  if [ "x$SCHROOT_SESSION_ID" = x ]; then
+    PS1=`autotitle`; export PS1;
+  fi
+ }
+rs() { eval `/usr/openwin/bin/resize` ; setprompt ; }
+cd() { builtin cd "$@"; setprompt; }
+pu() { builtin pushd "$@"; setprompt; }
+po() { builtin popd "$@"; setprompt; }
+
+# Set up history and prompt
+if [ "$PS1" ]
+then
+       HISTFILE=$HOME/.history/$HOST~$$~
+       AUTOTITLE_STDOUT="%?u%U%!%?g(%G)%!%?u@%!%h:%d1~.> "
+       AUTOTITLE_WINDOW="%h - %d~. %Y.[U..[M..[D./..%X.L]..M]..R]./.. %U%?G(%G)%!"
+       AUTOTITLE_ICON="%h: %d3~. %Y.[U..[M..[D./..%X.L]..M]..R]./.."
+       export AUTOTITLE_STDOUT AUTOTITLE_WINDOW AUTOTITLE_ICON
+       setprompt
+fi
diff --git a/dot/cvsrc b/dot/cvsrc
new file mode 100644 (file)
index 0000000..1361831
--- /dev/null
+++ b/dot/cvsrc
@@ -0,0 +1,2 @@
+update -d
+diff -u
diff --git a/dot/emacs b/dot/emacs
new file mode 100644 (file)
index 0000000..6bc26a4
--- /dev/null
+++ b/dot/emacs
@@ -0,0 +1,21 @@
+; Ian Jackson's Emacs startup file - runs ~ian/emacs/ian.el
+;
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(blink-cursor-mode nil)
+ '(font-use-system-font t)
+ '(send-mail-function (quote sendmail-send-it)))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )
+
+(setq load-path (append '("~ian/emacs") load-path))
+(load-library "ian")
+(menu-bar-mode -1)
+(put 'dired-find-alternate-file 'disabled nil)
diff --git a/dot/gitconfig b/dot/gitconfig
new file mode 100644 (file)
index 0000000..68ad4ff
--- /dev/null
@@ -0,0 +1,18 @@
+[user]
+       name = Ian Jackson
+       email = ijackson@chiark.greenend.org.uk
+[sendemail]
+       smtpdomain = zealot.relativity.greenend.org.uk
+       smtpserver = tunnel.chiark.greenend.org.uk
+       smtpserverport = 25
+       envelopesender = ijackson@chiark.greenend.org.uk
+       bcc = ijackson@chiark.greenend.org.uk
+[dgit-distro "debian"]
+       username = iwj
+#      mirror = http://mirror.relativity.greenend.org.uk/mirror/debian-ftp/
+        keyid = 0x48B50D39
+[color]
+       diff = false
+       ui = false
+[push]
+       default = simple