From 9bcd47bbd8f57c35f61c5319c608941e5ce42a49 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Tue, 25 Dec 2012 23:40:26 -0600 Subject: [PATCH] bin: Remove unused commands --- bin/addr | 16 --------------- bin/git-pruneall | 35 --------------------------------- bin/sync-home | 51 ------------------------------------------------ 3 files changed, 102 deletions(-) delete mode 100755 bin/addr delete mode 100755 bin/git-pruneall delete mode 100755 bin/sync-home diff --git a/bin/addr b/bin/addr deleted file mode 100755 index 24e461a..0000000 --- a/bin/addr +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# Usage: addr [] -# Show IPv4 address for interface or all interfaces with -# no given. - -# Darwin/OSX -ifconfig -a | -grep 'inet ' | -grep broadcast | -awk '{ print $2 }' - -# Linux -ifconfig -a | -grep 'inet ' | -grep Bcast | -awk '{ print $2 }' diff --git a/bin/git-pruneall b/bin/git-pruneall deleted file mode 100755 index b00f26a..0000000 --- a/bin/git-pruneall +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -e -# Usage: git-pruneall [...] -# Prune branches from specified remotes, or all remotes when -# not specified. - -REMOTES="$@" - -test -z "$REMOTES" && -REMOTES=$(git remote) - -for remote in $REMOTES -do - echo "pruning: $remote" - git remote prune "$remote" || true -done - -# Copyright (c) 2009 Ryan Tomayko -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. diff --git a/bin/sync-home b/bin/sync-home deleted file mode 100755 index b227c69..0000000 --- a/bin/sync-home +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh -# Usage: sync-home [user@]host ... -# Copy crucial dotfiles and scripts to one or more remote machines. -# -# Copyright (c) 2008 Ryan Tomayko -set -e - -test -z "$1" || echo "$@" | grep -q -- '--help' && { - echo "Usage: $0 [user@]host ..." - exit 1 -} - -cd ~ -for host in "$@"; do - echo "sync: $host" - rsync -avz --include-from=- --exclude='*' ./ "${host}:" <