git-shell-commands/edit-description
Billy Brawner 9eae3ed258 Add pre-script to switch to correct directory for each command
Signed-off-by: Billy Brawner <billy@wbrawner.com>
2019-12-22 16:51:45 -06:00

16 lines
227 B
Bash
Executable file

#!/usr/bin/env sh
source "$(dirname "$0")/pre-script"
if [[ -z "$1" ]]; then
echo "Please enter a repository name"
exit 1
fi
if [[ ! -d "$1.git" ]]; then
echo "Repo $1 doesn't exist"
exit 1
fi
vim "$1.git/description"