mirror of https://github.com/bjeanes/dotfiles.git
Organising dot files by purpose a bit
parent
e2a7032548
commit
e3861280f5
4
Rakefile
4
Rakefile
|
@ -3,8 +3,8 @@ require 'rake'
|
||||||
desc "install the dot files into user's home directory"
|
desc "install the dot files into user's home directory"
|
||||||
task :install do
|
task :install do
|
||||||
replace_all = false
|
replace_all = false
|
||||||
Dir['*'].each do |file|
|
Dir['*'].each do |dir|
|
||||||
next if %w[Rakefile README].include? file
|
next unless File.directory?(dir)
|
||||||
|
|
||||||
original = File.join(ENV['HOME'], ".#{file}")
|
original = File.join(ENV['HOME'], ".#{file}")
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
@ -4,9 +4,9 @@ mkdir -p ~/.l
|
||||||
|
|
||||||
set fish_greeting ''
|
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
|
set PATH /usr/sbin /usr/bin /sbin /bin
|
||||||
|
|
||||||
|
|
|
@ -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'
|
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)
|
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)
|
||||||
|
|
||||||
# Write the process working directory
|
echo (printf '%s%s' $pwd $git) "$prompt "
|
||||||
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
|
end
|
|
@ -1,5 +1,5 @@
|
||||||
function log
|
function log
|
||||||
tail -fn0 log/*.log
|
tail -fn0 log/*.log /var/log/apache2/*_log
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -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
|
|
@ -6,8 +6,6 @@ gem: --no-ri
|
||||||
gemcutter_key: 36e2540f40da9e6e1737951140f1723c
|
gemcutter_key: 36e2540f40da9e6e1737951140f1723c
|
||||||
:sources:
|
:sources:
|
||||||
- http://gemcutter.org
|
- http://gemcutter.org
|
||||||
- http://gems.rubyforge.org/
|
|
||||||
- http://gems.github.com/
|
|
||||||
:backtrace: false
|
:backtrace: false
|
||||||
:bulk_threshold: 1000
|
:bulk_threshold: 1000
|
||||||
rdoc: --inline-source --line-numbers --fmt=shtml --template=direct
|
rdoc: --inline-source --line-numbers --fmt=shtml --template=direct
|
Loading…
Reference in New Issue