aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README8
-rwxr-xr-xdeploy.sh23
-rw-r--r--gitconfig.template19
-rw-r--r--gitignore9
-rw-r--r--vimrc62
5 files changed, 117 insertions, 4 deletions
diff --git a/README b/README
index abb9210..8ffc495 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
-rm -f clutchski-dotfiles-*.tar.gz
-wget http://github.com/clutchski/dotfiles/tarball/master
-tar zxfv clutchski-dotfiles-*.tar.gz
-cd clutchski-dotfiles*
+rm -f xcolour-dotfiles-*.tar.gz
+wget http://github.com/xcolour/dotfiles/tarball/master
+tar zxfv xcolour-dotfiles-*.tar.gz
+cd xcolour-dotfiles*
./deploy.sh
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..83f9dc9
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+set -e
+
+# template git profile
+echo "enter your global git user name:"
+read name
+echo "enter your global git e-mail:"
+read email
+
+sed -e "s|#NAME#|$name|" -e "s|#EMAIL#|$email|" gitconfig.template > gitconfig
+
+# deploy
+for f in vimrc gitconfig gitignore
+do
+ cp $f ~/.${f}
+done
+
+mkdir -p ~/.vim
+cp -r vim/* ~/.vim
+
+# clean-up
+rm gitconfig
diff --git a/gitconfig.template b/gitconfig.template
new file mode 100644
index 0000000..3904033
--- /dev/null
+++ b/gitconfig.template
@@ -0,0 +1,19 @@
+[user]
+ name = #NAME#
+ email = #EMAIL#
+
+[alias]
+ st = status
+ ci = commit
+ br = branch
+ co = checkout
+ df = diff
+ lg = log -p
+
+[core]
+ whitespace = trailing-space,space-before-tab,cr-at-eol
+ editor = vim
+ autocrlf = true
+
+[color]
+ ui = true
diff --git a/gitignore b/gitignore
new file mode 100644
index 0000000..96f3a7e
--- /dev/null
+++ b/gitignore
@@ -0,0 +1,9 @@
+*.class
+*.pyc
+*.swo
+*.swp
+.svn
+.swo
+*#*
+#
+.#*
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..fac1e9b
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,62 @@
+" .vimrc
+
+"
+" behavior
+"
+
+set nocompatible " use vim, not vi settings
+set wildmenu " command line tab completion menu
+set ruler " show the cursor position all the time
+set showcmd " display incomplete commands
+set incsearch " do incremental searching
+set ignorecase " ignore case in search
+set smartcase " respect case in search if uppercase is used
+set nowrap " do not wrap lines
+set backspace=indent,eol,start " backspace over all stuff
+
+"
+" formatting
+"
+
+set autoindent
+set tabstop=4
+set softtabstop=4
+set shiftwidth=4
+set expandtab
+set smarttab
+
+"
+" filetype-specific
+"
+
+if has("autocmd")
+ filetype plugin indent on
+
+ au!
+ au FileType text setlocal textwidth=78
+ au FileType html setlocal ts=2 sw=2 sts=2 expandtab
+ au FileType ruby setlocal ts=2 sw=2 sts=2 expandtab
+
+ " php files
+ au BufRead,BufNewFile *.module setlocal filetype=php
+ au BufRead,BufNewFile *.inc setlocal filetype=php
+ au BufRead,BufNewFile *.install setlocal filetype=php
+
+ " html templates
+ au BufRead,BufNewFile *.mako setlocal filetype=html
+
+ " When editing a file, always jump to the last known cursor position.
+ " Don't do it when the position is invalid or when inside an event handler
+ au BufReadPost *
+ \ if line("'\"") > 0 && line("'\"") <= line("$") |
+ \ exe "normal g`\"" |
+ \ endif
+endif
+
+"
+" visual
+"
+
+color desert
+syntax on
+set hlsearch