From ec52621f482bc4bc11a5d8a758d60690d4fa9df5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 9 Dec 2015 01:42:27 -0500 Subject: [PATCH] Separate system scripts from programs --- {scripts => bin}/2png | 0 {scripts => bin}/git-move-root-to | 0 bin/git-stats | 11 +++++++++++ {scripts => bin}/html2pdf | 0 {scripts => bin}/lesspipe | 0 {scripts => bin}/lsarchive | 0 {scripts => bin}/run-boris | 0 {scripts => bin}/ss | 0 {scripts => bin}/ss2mov | 0 {scripts => bin}/unarchive | 0 {scripts => bin}/wrag | 0 install.sh => scripts/install.sh | 2 +- scripts/{org-clean => org-clean.sh} | 0 scripts/{update => update.sh} | 0 zshenv | 2 +- 15 files changed, 13 insertions(+), 2 deletions(-) rename {scripts => bin}/2png (100%) rename {scripts => bin}/git-move-root-to (100%) create mode 100755 bin/git-stats rename {scripts => bin}/html2pdf (100%) rename {scripts => bin}/lesspipe (100%) rename {scripts => bin}/lsarchive (100%) rename {scripts => bin}/run-boris (100%) rename {scripts => bin}/ss (100%) rename {scripts => bin}/ss2mov (100%) rename {scripts => bin}/unarchive (100%) rename {scripts => bin}/wrag (100%) rename install.sh => scripts/install.sh (85%) rename scripts/{org-clean => org-clean.sh} (100%) rename scripts/{update => update.sh} (100%) diff --git a/scripts/2png b/bin/2png similarity index 100% rename from scripts/2png rename to bin/2png diff --git a/scripts/git-move-root-to b/bin/git-move-root-to similarity index 100% rename from scripts/git-move-root-to rename to bin/git-move-root-to diff --git a/bin/git-stats b/bin/git-stats new file mode 100755 index 00000000..243d97b0 --- /dev/null +++ b/bin/git-stats @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +git rev-list --max-count=10 --reverse HEAD | +while read rev; do + git log --oneline -1 $rev + git ls-tree -r $rev | + awk '{print $3}' | + xargs git show +done diff --git a/scripts/html2pdf b/bin/html2pdf similarity index 100% rename from scripts/html2pdf rename to bin/html2pdf diff --git a/scripts/lesspipe b/bin/lesspipe similarity index 100% rename from scripts/lesspipe rename to bin/lesspipe diff --git a/scripts/lsarchive b/bin/lsarchive similarity index 100% rename from scripts/lsarchive rename to bin/lsarchive diff --git a/scripts/run-boris b/bin/run-boris similarity index 100% rename from scripts/run-boris rename to bin/run-boris diff --git a/scripts/ss b/bin/ss similarity index 100% rename from scripts/ss rename to bin/ss diff --git a/scripts/ss2mov b/bin/ss2mov similarity index 100% rename from scripts/ss2mov rename to bin/ss2mov diff --git a/scripts/unarchive b/bin/unarchive similarity index 100% rename from scripts/unarchive rename to bin/unarchive diff --git a/scripts/wrag b/bin/wrag similarity index 100% rename from scripts/wrag rename to bin/wrag diff --git a/install.sh b/scripts/install.sh similarity index 85% rename from install.sh rename to scripts/install.sh index 7e13ca45..03af75f3 100755 --- a/install.sh +++ b/scripts/install.sh @@ -7,7 +7,7 @@ ~/.vim/install.sh shopt -s extglob -for rcfile in "$HOME"/.dotfiles/!(bin|README.md|Gemfile*|install.sh); do +for rcfile in "$HOME"/.dotfiles/!(bin|scripts|README.md|Gemfile*); do filep="$HOME/."$(basename "$rcfile") [ "$1" == "--force" ] && rm -f "$filep" diff --git a/scripts/org-clean b/scripts/org-clean.sh similarity index 100% rename from scripts/org-clean rename to scripts/org-clean.sh diff --git a/scripts/update b/scripts/update.sh similarity index 100% rename from scripts/update rename to scripts/update.sh diff --git a/zshenv b/zshenv index 489511d5..1f4fd232 100644 --- a/zshenv +++ b/zshenv @@ -53,7 +53,7 @@ export ANDROID_SDK=/usr/local/Cellar/android-sdk/24.2 # Set the list of directories that Zsh searches for programs. path=( - $HOME/.dotfiles/scripts + $HOME/.dotfiles/{bin,scripts} /usr/local/{bin,sbin} /usr/{bin,sbin} /{bin,sbin}