Compare commits
2 commits
153cbcfb54
...
d78c338f63
| Author | SHA1 | Date | |
|---|---|---|---|
| d78c338f63 | |||
| eec8e003fb |
2 changed files with 20 additions and 2 deletions
11
.forgejo/workflows/shellcheck.yml
Normal file
11
.forgejo/workflows/shellcheck.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
name: ShellCheck
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
shellcheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Run ShellCheck
|
||||||
|
run: shellcheck dotgit.sh demo/demo-note.sh
|
||||||
11
README.md
11
README.md
|
|
@ -1,6 +1,13 @@
|
||||||
|
# dotGit ::: 🪄 dotfiles + 🧸 bare git repo + 🐚 shell aliases
|
||||||
|
### a minimal and effective approach to dotfiles (and git repos)
|
||||||
|
|
||||||
# dotGit ::: 🪄 dotfiles + 🧸 bare git repo + 🐚 shell aliases ::: a minimal and effective approach to dotfiles (and git repos)
|
# dotGit ::: 🪄 dotfiles + 🧸 bare git repo + 🐚 shell aliases ::: a minimal and effective approach to dotfiles (and git repos)
|
||||||
|
|
||||||
Your dotfiles are scattered across `$HOME`. You can't remember which file sets `PATH`, or where you defined that alias three months ago. `.gg PATH` greps across every tracked dotfile and drops you straight to the line. `.ge` fuzzy-finds any file by name with a live preview. Under the hood it's a [bare git repo](https://news.ycombinator.com/item?id=11070797), so files stay exactly where tools expect them and everything else is standard git.
|
[](https://code.opennomad.com/opennomad/dotGit/actions?workflow=shellcheck.yml)
|
||||||
|
|
||||||
|
Dotfiles are scattered across `$HOME`. Can't remember where you set the `PATH`, or where you defined that alias three months ago? `.gg PATH` greps across every tracked dotfile and drops you straight to the line. `.ge` fuzzy-finds any file by name with a live preview. Under the hood it's a [bare git repo](https://news.ycombinator.com/item?id=11070797), so files stay exactly where tools expect them and everything else is standard git behind some aliases.
|
||||||
|
|
||||||
|
Bonus: set `DOTGIT_ANYGIT=yes` and the same gg/ge aliases (without the leading dot) work across all your repos.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
@ -141,7 +148,7 @@ Everything else is a standard git alias pointed at the dotfiles repo.
|
||||||
|
|
||||||
### ANYGIT
|
### ANYGIT
|
||||||
|
|
||||||
Setting `DOTGIT_ANYGIT=yes` causes dotGit to source a transformed copy of itself that registers a parallel set of aliases without the leading `.` — so `.ga` becomes `ga`, `.gc` becomes `gc`, etc. These work against whichever git repo your shell is currently in, like ordinary git aliases.
|
Setting `DOTGIT_ANYGIT=yes` causes dotGit to source a transformed copy of itself that registers a parallel set of aliases without the leading `.` — so `.ga` becomes `ga`, `.gc` becomes `gc`, etc. These work against whichever git repo your shell is currently in, like ordinary git aliases. Yes, `ge` and `gg` are included.
|
||||||
|
|
||||||
## initial clone cleanup
|
## initial clone cleanup
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue