mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-08 09:50:52 +00:00
dfm: dotfiles update
This commit is contained in:
@@ -173,4 +173,3 @@ case "$1" in
|
||||
tests) section_tests "$2" ;;
|
||||
*) usage && exit 1 ;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -21,18 +21,20 @@
|
||||
|
||||
# If user has provided folder as a first argument, use it.
|
||||
if [ "$1" != "" ]; then
|
||||
GIT_DIRTY_DIR="$1"
|
||||
GIT_DIRTY_DIR="$1"
|
||||
fi
|
||||
|
||||
# UTF-8 ftw
|
||||
GITDIRTY="❌ "
|
||||
GITCLEAN="✅ "
|
||||
|
||||
catch() {
|
||||
catch()
|
||||
{
|
||||
echo "Error $1 occurred on $2"
|
||||
}
|
||||
|
||||
gitdirty() {
|
||||
gitdirty()
|
||||
{
|
||||
local d="$1"
|
||||
trap 'catch $? $LINENO' ERR
|
||||
|
||||
@@ -64,7 +66,8 @@ gitdirty() {
|
||||
fi
|
||||
}
|
||||
|
||||
gitdirtyrepos() {
|
||||
gitdirtyrepos()
|
||||
{
|
||||
for x in "$@"; do
|
||||
gitdirty "$x"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user