From 301b097027d4f4a6ae99782bada75587db5d299b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 16 Dec 2015 21:08:41 +0000 Subject: [PATCH] Import some dotfiles from zealot --- dot/bashrc | 33 +++++++++++++++++++++++++++++++++ dot/cvsrc | 2 ++ dot/emacs | 21 +++++++++++++++++++++ dot/gitconfig | 18 ++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 dot/bashrc create mode 100644 dot/cvsrc create mode 100644 dot/emacs create mode 100644 dot/gitconfig diff --git a/dot/bashrc b/dot/bashrc new file mode 100644 index 0000000..a173c4b --- /dev/null +++ b/dot/bashrc @@ -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 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 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 index 0000000..68ad4ff --- /dev/null +++ b/dot/gitconfig @@ -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 -- 2.30.2