Create script for managing code-specific content

This commit is contained in:
Gabriel Arazas 2023-02-21 01:04:38 +08:00
parent 4fcb349415
commit 470fe23ab4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -0,0 +1,7 @@
#!/usr/bin/env nix-shell
#! nix-shell -p findutils coreutils git fzf -i bash
find ./content/ -mindepth 2 -iname 'index.adoc' -printf '%P\n' \
| xargs dirname \
| fzf --prompt "Choose orphan content branch " --filepath-word --info=hidden \
| xargs git switch --orphan