From 6cf62dc94e3ebd93890bb23a0b127eb5d61f63bd Mon Sep 17 00:00:00 2001 From: Holger Just Date: Mon, 30 Aug 2010 11:48:08 +0200 Subject: [PATCH 1/2] Fix file check for simultaneous starts of terminal windows --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 165ef38..e790cf6 100755 --- a/.bashrc +++ b/.bashrc @@ -67,7 +67,7 @@ fi USER_NAME="Holger Just" USER_EMAIL="web@meine-er.de" # Setting up git. -if [ -f ~/.gitconfig ]; then +if [[ -f ~/.gitconfig ]]; then if [ "$(git config --global user.name)" != "$USER_NAME" ]; then echo "WARNING: git's user.name is $(git config --global user.name)" fi From 1cf6c364f68743f46061473591b07211ff84691a Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 31 Aug 2010 20:18:52 +0200 Subject: [PATCH 2/2] Log to stdout in irb --- .gitconfig | 38 +++++++++++++++++++------------------- .irbrc | 5 +++++ 2 files changed, 24 insertions(+), 19 deletions(-) create mode 100644 .irbrc diff --git a/.gitconfig b/.gitconfig index 90bbbca..00077e0 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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 diff --git a/.irbrc b/.irbrc new file mode 100644 index 0000000..8b25cc2 --- /dev/null +++ b/.irbrc @@ -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