Append .sh to bin scripts

This help distinguish personal scripts from binaries in $PATH
This commit is contained in:
Henrik Lissner 2016-10-19 21:38:58 +02:00
parent 66c6bdc7d8
commit bf2c16dac3
17 changed files with 4 additions and 90 deletions

View file

@ -5,8 +5,9 @@
# Usage: 2png *.{psd,ai}
[ ! -d _png ] && mkdir -p _png;
[[ ! -d _png ]] && mkdir -p _png;
for f in $1; do
for f in $1
do
convert -resize 1200x1200 ${f}[0] _png/${f}.png
done

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Script for encrypting and decrypting folders, using GPG and tar
# Usage:

View file

@ -1,14 +0,0 @@
#!/usr/bin/env zsh
# Converts an html file (or website) to a pdf. It installs
# the dependencies if they aren't available.
#
# Note: MAC ONLY!
if ! command -v "wkhtmltopdf" &> /dev/null; then
# wkhtmltopdf > 0.9.9 has a habit of hanging after it completes, so we
# install 0.9.9 explicitly instead.
brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb
fi
wkhtmltopdf "$1" "$2"

View file

@ -1,5 +0,0 @@
#!/usr/bin/env zsh
# Mac-only: run boris REPL with homebrewed PHP
/usr/local/bin/php /usr/local/bin/boris

View file

@ -1,18 +0,0 @@
#!/bin/sh
# Start taking screenshots every N seconds, until this script is
# called again.
if [ ! -f ~/.ss ]; then
dir="$1"
if [ $# -eq 0 ]; then
[ ! -d ~/Desktop/ss ] && mkdir -p ~/Desktop/ss
dir=~/Desktop/ss
fi
echo "$dir" > ~/.ss
echo "Timelapse, go!"
i=1;while [ -f ~/.ss ];do screencapture -t jpg -x "$dir/$i.jpg"; let i++;sleep 5; done &
else
echo "Deactivating timelapse! Images in: $(cat ~/.ss)/"
rm ~/.ss
fi

View file

@ -1,3 +0,0 @@
#!/bin/sh
ffmpeg -r 24 -i %d.jpg -b 16000k $1

View file

@ -1 +0,0 @@
since

View file

@ -1,46 +0,0 @@
#!/usr/bin/env zsh
set -e
indent() { sed 's/^/ /'; }
up-to-date() {
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse @{u})
[[ "$LOCAL" == "$REMOTE" ]]
}
(( $+commands[brew] )) && {
echo "Updating homebrew"
{ brew update; brew upgrade --all; brew cleanup } | indent
}
[ -f "$HOME/.emacs.d/Makefile" ] && {
echo -n "Updating emacs"
cd "$HOME/.emacs.d" && make update | indent
}
[ -d ~/.zsh/zgen ] && {
echo "Updating zgen"
{
source "$HOME/.zgen/zgen.zsh"
zgen selfupdate
zgen update
} 2>&1 | indent
}
local env=(rb py)
for i in $env
do
[ -d "$HOME/.${i}env" ] && {
echo "Updating ${i}env"
{
for plugin in "$HOME"/.${i}env/plugins/*
do
cd "$plugin"
echo "+ `basename ${plugin}`"
git pull
done
} 2>&1 | indent
}
done