Browse Source

add func _gen_source_script

pull/1/head
10sr 12 years ago
parent
commit
e0bc769c95
2 changed files with 6 additions and 1 deletions
  1. +0
    -1
      emacs.el
  2. +6
    -0
      setup.sh

+ 0
- 1
emacs.el View File

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



+ 6
- 0
setup.sh View File

@@ -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…
Cancel
Save