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