1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-06 00:53:23 +00:00

Log to stdout in irb

This commit is contained in:
Holger Just 2010-08-31 20:18:52 +02:00
parent 697ed046e9
commit 1cf6c364f6
2 changed files with 24 additions and 19 deletions

View File

@ -1,25 +1,25 @@
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset %Cblue(%aN)%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
chp = cherry-pick
st = status
co = checkout
merge = merge --no-ff
pull = pull --no-ff
ci = commit
cm = commit
lg = log --graph --pretty=format:'%Cred%h%Creset %Cblue(%aN)%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
chp = cherry-pick
st = status
co = checkout
merge = merge --no-ff
pull = pull --no-ff
ci = commit
cm = commit
[user]
name = Holger Just
email = "web@meine-er.de"
name = Holger Just
email = "web@meine-er.de"
[color]
branch = auto
diff = auto
grep = auto
interactive = auto
ui = auto
branch = auto
diff = auto
grep = auto
interactive = auto
ui = auto
[help]
autocorrect = 1
autocorrect = 1
[push]
default = matching
default = matching
[core]
autocrlf = false
editor = mate -wl1
autocrlf = false
editor = mate -wl1

5
.irbrc Normal file
View File

@ -0,0 +1,5 @@
# Rails will log to irb
require 'logger'
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
Object.const_set('RAILS_DEFAULT_LOGGER', Logger.new(STDOUT))
end