-
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.
chore(meta): cleanup all dotbot installation files
- Loading branch information
Showing
133 changed files
with
468 additions
and
1,389 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 bash | ||
|
||
for path in "$@"; do | ||
for entry in "$path"/* "$path"/.*; do | ||
if [[ -L $entry && ! -e "$(readlink $entry)" ]]; then | ||
unlink $entry | ||
fi | ||
done | ||
done |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
if ! command -v docker &>/dev/null; then | ||
exit 1 | ||
fi |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
git_is_repo || return | ||
|
||
git branch -a --color=always \ | ||
| grep -v '/HEAD\s' \ | ||
| sort \ | ||
| fzf \ | ||
--ansi \ | ||
--multi \ | ||
--tac \ | ||
--preview-window right:70% \ | ||
--preview 'git log --oneline --graph --date=short --color=always --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1)' \ | ||
| sed 's/^..//' \ | ||
| cut -d' ' -f1 \ | ||
| sed 's#^remotes/##' |
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
git_is_repo || return | ||
|
||
git log \ | ||
--date=short \ | ||
--graph \ | ||
--color=always \ | ||
--format="%C(green)%C(bold)%cd %C(auto)%h%d %s (%an)" \ | ||
| fzf \ | ||
--ansi \ | ||
--no-sort \ | ||
--reverse \ | ||
--multi \ | ||
--bind 'ctrl-s:toggle-sort' \ | ||
--header 'Press CTRL-S to toggle sort' \ | ||
--preview 'grep -o "[a-f0-9]\{7,\}" <<< {} | xargs git show --color=always' \ | ||
| grep -o "[a-f0-9]\{7,\}" |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
git_is_repo || return | ||
|
||
git remote -v \ | ||
| awk '{print $1 "\t" $2}' \ | ||
| uniq \ | ||
| fzf --tac \ | ||
--preview 'git log --oneline --graph --date=short --pretty="format:%C(auto)%cd %h%d %s" {1}' \ | ||
| cut -d"\t" -f1 |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
git_is_repo || return | ||
|
||
git stash list \ | ||
| fzf --reverse -d: \ | ||
--preview 'git show --color=always {1}' \ | ||
| cut -d: -f1 |
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 bash | ||
|
||
git_is_repo || return | ||
|
||
git -c color.status=always status --short \ | ||
| fzf -m --ansi --nth 2..,.. \ | ||
--preview '(git diff --color=always -- {-1} | sed 1,4d; cat {-1})' \ | ||
| cut -c4- \ | ||
| sed 's/.* -> //' |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
git_is_repo || return | ||
|
||
git tag --sort -version:refname \ | ||
| fzf --multi --preview-window right:70% \ | ||
--preview 'git show --color=always {}' |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
k8s_is_valid || return | ||
|
||
kubectl get jobs,pytorchjobs -o wide \ | ||
| fzf --header-lines=1 \ | ||
--preview-window='hidden' \ | ||
--preview='kubectl logs "$(cut -d" " -f1 <<<{} | sed -E "s:.*/::g")"' \ | ||
| cut -d' ' -f1 \ | ||
| sed -E 's:.*/::g' |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
k8s_is_valid || return | ||
|
||
kubectl get pods -o wide \ | ||
| fzf --header-lines=1 \ | ||
--preview-window='hidden' \ | ||
--preview='kubectl logs "$(cut -d" " -f1 <<<{} | sed -E "s:.*/::g")"' \ | ||
| cut -d' ' -f1 \ | ||
| sed -E 's:.*/::g' |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
projects \ | ||
| fzf \ | ||
--multi \ | ||
--preview='eza {}' \ | ||
--preview-window='nowrap' |
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 bash | ||
|
||
if ! command git &>/dev/null; then | ||
exit 1 | ||
fi | ||
|
||
if ! git rev-parse HEAD &>/dev/null; then | ||
exit 1 | ||
fi |
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 bash | ||
|
||
if ! command -v kubectl &>/dev/null; then | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -f ~/.kube/config ]]; then | ||
exit 1 | ||
fi |
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
fd -HI --type d '^\.git$' "${1:-.}" -x echo '{//}' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
lsgit ~/workspace |
Oops, something went wrong.