Organising dot files by purpose a bit

pull/2/head
Bodaniel Jeanes 2010-06-25 14:11:53 +10:00
parent e2a7032548
commit e3861280f5
27 changed files with 50 additions and 35 deletions

View File

@ -3,8 +3,8 @@ require 'rake'
desc "install the dot files into user's home directory"
task :install do
replace_all = false
Dir['*'].each do |file|
next if %w[Rakefile README].include? file
Dir['*'].each do |dir|
next unless File.directory?(dir)
original = File.join(ENV['HOME'], ".#{file}")

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

View File

@ -4,9 +4,9 @@ mkdir -p ~/.l
set fish_greeting ''
set path_list /Library/PostgreSQL8/bin /opt/local/*bin /opt/local/*/*bin /usr/local/*bin /usr/local/*/*bin /opt/nginx/*bin ~/.config/fish/bin
set path_list /Library/PostgreSQL8/bin /opt/local/*bin /usr/X11/bin /opt/local/*/*bin /usr/local/*bin /usr/local/*/*bin /usr/local/**/bin /opt/nginx/*bin ~/.config/fish/bin
set cd_path_list . ~ ~/Sites ~/Code /Volumes ~/.l
set cd_path_list . ~ ~/Sites ~/Sites/* ~/Code /Volumes ~/.l
set PATH /usr/sbin /usr/bin /sbin /bin

View File

@ -1,29 +1,8 @@
# function fish_prompt --description 'Write out the prompt'
# set pr_timestamp (date '+%a %H:%M:%S')
# set pr_user (whoami)
# set pr_host (hostname | cut -d . -f 1)
# set pr_cwd (prompt_pwd)
# set pr_git_info (git_cwd_info)
# printf "\033[90m$pr_timestamp\033[0m $pr_user\033[90m@\033[0m$pr_host \033[90m$pr_cwd\033[0m \033[32m>\033[0m "
# end
function fish_prompt --description 'Write out the prompt'
printf '%s%s@%s%s ' (set_color green) (whoami) (hostname|cut -d . -f 1) (set_color normal)
# Write the process working directory
if test -w "."
printf '%s%s' (set_color -o $fish_color_cwd) (prompt_pwd)
else
printf '%s%s' (set_color -o $fish_color_uneditable_cwd) (prompt_pwd)
end
printf '%s%s ' (set_color red) (__git_ps1)
if git_dirty
printf '%s☠ ' (set_color red)
end
printf '%s$%s ' (set_color -o $fish_color_cwd) (set_color normal)
printf '%s> ' (set_color normal)
end
set -l prompt (color_print (command_status_color) '♪' )
set -l date (color_print (set_color white) (date '+%a %H:%M:%S'))
set -l git (color_print (set_color red) (__git_ps1))
set -l pwd (prompt_pwd)
echo (printf '%s%s' $pwd $git) "$prompt "
end

View File

@ -1,5 +1,5 @@
function log
tail -fn0 log/*.log
tail -fn0 log/*.log /var/log/apache2/*_log
end

38
git/gitconfig 100755
View File

@ -0,0 +1,38 @@
[user]
name = Bodaniel Jeanes
email = me@bjeanes.com
[merge]
summary = true
tool = opendiff
[alias]
co = checkout
put = push origin HEAD
push-all = "!for i in $(git config --list | grep -E ^remote\\..+\\.url | sed -E 's/^remote\\.(.*)\\.url=.*/\\1/'); do git push $i master; done"
unadd = reset HEAD
[apply]
whitespace = nowarn
[color]
branch = auto
diff = auto
status = auto
ui = auto
[core]
editor = mate -w
excludesfile = ~/.gitignore
whitespace = fix
[branch]
autosetupmerge = always
autosetuprebase = local
[push]
default = matching
[diff "ruby"]
funcname = ^ *\\(\\(class\\|module\\|def\\) .*\\)
[github]
user = bjeanes
token = df574517df9e5cef449ff0010fdce8b6
[codebase]
username = bjeanes
domain = mocra.codebasehq.com
apikey = 5f1pkluckqk82ip9if8jomfbfxi38ofbn2keiata

View File

View File

View File

View File

View File

@ -6,8 +6,6 @@ gem: --no-ri
gemcutter_key: 36e2540f40da9e6e1737951140f1723c
:sources:
- http://gemcutter.org
- http://gems.rubyforge.org/
- http://gems.github.com/
:backtrace: false
:bulk_threshold: 1000
rdoc: --inline-source --line-numbers --fmt=shtml --template=direct

View File