瀏覽代碼

add func _gen_source_script

pull/1/head
10sr 12 年之前
父節點
當前提交
e0bc769c95
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. +0
    -1
      emacs.el
  2. +6
    -0
      setup.sh

+ 0
- 1
emacs.el 查看文件

@@ -1,4 +1,3 @@
;; load another file
;; (and (file-readable-p "~/.dotfiles/emacs.el")
;; (load-file "~/.dotfiles/emacs.el"))



+ 6
- 0
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

Loading…
取消
儲存