summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@member.fsf.org>2012-09-29 14:38:16 -0400
committerDavid Thompson <dthompson@member.fsf.org>2012-09-29 14:38:16 -0400
commit8056a8794d53abae464fce215af8ca0e6d37f354 (patch)
tree25dff02f5b006616f119b9356b8deb1d97ca8847
First commit.
-rw-r--r--.gitignore1
-rw-r--r--README.md4
-rw-r--r--dotfiles/bashrc14
-rw-r--r--dotfiles/emacs32
-rw-r--r--dotfiles/screenrc5
-rwxr-xr-xinstall.sh9
6 files changed, 65 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e4e5f6c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*~ \ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..0e83cfe
--- /dev/null
+++ b/README.md
@@ -0,0 +1,4 @@
+Dave's dotfiles
+===============
+
+All the cool kids put their dotfiles on github. \ No newline at end of file
diff --git a/dotfiles/bashrc b/dotfiles/bashrc
new file mode 100644
index 0000000..6c02f9d
--- /dev/null
+++ b/dotfiles/bashrc
@@ -0,0 +1,14 @@
+#
+# ~/.bashrc
+#
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+alias ls='ls --color=auto'
+alias aigis='ssh dave@aigis'
+
+PS1='[\u@\h \W]\$ '
+
+PATH="$PATH":~/.gem/ruby/1.9.1/bin
+export PATH
diff --git a/dotfiles/emacs b/dotfiles/emacs
new file mode 100644
index 0000000..a45ea11
--- /dev/null
+++ b/dotfiles/emacs
@@ -0,0 +1,32 @@
+;; Extra package repositories
+(require 'package)
+(add-to-list 'package-archives '("tromey" . "http://tromey.com/elpa/"))
+(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
+(package-initialize)
+
+;; Theme
+(load-theme 'solarized-light t)
+(set-default-font "Source Code Pro-10")
+
+;; Interactively do shit!
+(require 'ido)
+(ido-mode t)
+(ido-ubiquitous-mode t)
+
+;; Line numbers are good!
+(global-linum-mode t)
+(global-hl-line-mode)
+(column-number-mode t)
+
+;; Highlight matching parens and autopair them
+(show-paren-mode t)
+(require 'autopair)
+(autopair-global-mode t)
+
+;; Auto-completion is sick!
+(require 'auto-complete)
+(global-auto-complete-mode t)
+
+;; K&R style C/C++ code
+(setq c-basic-offset 8)
+(setq c-default-style "k&r" -basic-offset)
diff --git a/dotfiles/screenrc b/dotfiles/screenrc
new file mode 100644
index 0000000..1af593e
--- /dev/null
+++ b/dotfiles/screenrc
@@ -0,0 +1,5 @@
+# Don't bug me
+startup_message off
+
+# Hardstatus line
+hardstatus alwayslastline " [ %-w%{+b ..}%n %t%{-}%+w ]%-= [ %C ] [ %H ]" \ No newline at end of file
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..d65961f
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+# Symlink dotfiles to ~
+
+for file in dotfiles/*; do
+ target=`realpath $file`
+ link_name=~/.`basename $file`
+
+ ln -fvs $target $link_name
+done