Permalink
Browse files

• update other uses of niutil/dscl to TM_FULLNAME

git-svn-id: http://svn.textmate.org/trunk/Bundles/Source.tmbundle@8309 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 0cdbf6e commit 1cd6ad5e9ac48bf776a1d5a0d1b3360338b31118 @sorbits sorbits committed Oct 19, 2007
Showing with 1 addition and 2 deletions.
  1. +1 −2 Commands/Insert Source Header.tmCommand
@@ -42,8 +42,7 @@ if comment_end.empty?
indent = ' '
end
-# Leopard doesn't have niutil
-username = `dscl -raw . read /Users/#{ENV['USER']} realname | ruby -e 'puts STDIN.read.sub(/.*realname:\s*(.*)$/, "\\\\1")'`.strip
+username = ENV['TM_FULLNAME']
date = `date +%Y-%m-%d`.chomp
# Default to username if no organization name

0 comments on commit 1cd6ad5

Please sign in to comment.