-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
162aca4
commit a716bb2
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[user] | ||
name = Ferdhika Yudira | ||
email = [email protected] | ||
[url "[email protected]:"] | ||
insteadOf = https://github.com/ | ||
[url "[email protected]:"] | ||
insteadOf = https://gitlab.com/ | ||
[url "[email protected]:"] | ||
insteadOf = https://gitlab.playcourt.id/ | ||
[url "[email protected]:"] | ||
insteadOf = https://git.karismatech.net/ | ||
[fetch] | ||
prune = true | ||
[pull] | ||
ff = only | ||
[push] | ||
default = current | ||
[alias] | ||
done = ! "git default; git pull; git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D" | ||
default = ! "git switch $(cat $(git rev-parse --git-dir)/refs/remotes/origin/HEAD | cut -d'/' -f4)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env sh | ||
|
||
TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S") | ||
|
||
echo $TIMESTAMP | ||
|
||
if ! command -v git >/dev/null; then | ||
echo "git not found; skipping..." | ||
return | ||
fi | ||
|
||
CONFIG_HOME=~/ | ||
|
||
if test ~/dotfiles/git/config -ef $CONFIG_HOME; then | ||
echo "git found and configured already; skipping..." | ||
return | ||
fi | ||
|
||
echo "git found and not configured; configuring..." | ||
|
||
rm -f $CONFIG_HOME.gitconfig | ||
cp ./git/config $CONFIG_HOME.gitconfig | ||
|
||
echo "git found and configured;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env sh | ||
|
||
mkdir -p ~/bin | ||
|
||
for app in ./*; do | ||
if test -d $app && test -f $app/setup.sh; then | ||
. $app/setup.sh | ||
fi | ||
done |