From e0bc769c9512e00ecc6b287f4690aae85bbaee99 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 3 Aug 2012 18:05:16 +0900 Subject: [PATCH] add func _gen_source_script --- emacs.el | 1 - setup.sh | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 70b6a67..a0b9178 100644 --- a/emacs.el +++ b/emacs.el @@ -1,4 +1,3 @@ -;; load another file ;; (and (file-readable-p "~/.dotfiles/emacs.el") ;; (load-file "~/.dotfiles/emacs.el")) diff --git a/setup.sh b/setup.sh index 8b0bc2c..c01fa0f 100755 --- a/setup.sh +++ b/setup.sh @@ -58,6 +58,12 @@ _my_git_config(){ fi } +_gen_source_script(){ + # _gen_source_script file lines + test $# -eq 2 || return 1 + head -n $2 $1 | \grep -v '^#!' | sed -e 's/^..//g' +} + _my_install_script http://www.frexx.de/xterm-256-notes/data/colortable16.sh http://www.frexx.de/xterm-256-notes/data/256colors2.pl type git >/dev/null 2>&1 && _my_git_config