From 8056a8794d53abae464fce215af8ca0e6d37f354 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 29 Sep 2012 14:38:16 -0400 Subject: First commit. --- .gitignore | 1 + README.md | 4 ++++ dotfiles/bashrc | 14 ++++++++++++++ dotfiles/emacs | 32 ++++++++++++++++++++++++++++++++ dotfiles/screenrc | 5 +++++ install.sh | 9 +++++++++ 6 files changed, 65 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 dotfiles/bashrc create mode 100644 dotfiles/emacs create mode 100644 dotfiles/screenrc create mode 100755 install.sh 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 -- cgit v1.2.3