feat(arty): add git:config script to create .gitconfig.local
Prompts for name and email, writes [user] section to ~/.gitconfig.local which is already included by .gitconfig. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,11 @@ scripts:
|
|||||||
debian:install:libs: sudo apt install -y libffi-dev zlib1g-dev libyaml-dev libssl-dev liblzma-dev libbz2-dev libncurses-dev libreadline-dev libsqlite3-dev python3-tk tk-dev zstd
|
debian:install:libs: sudo apt install -y libffi-dev zlib1g-dev libyaml-dev libssl-dev liblzma-dev libbz2-dev libncurses-dev libreadline-dev libsqlite3-dev python3-tk tk-dev zstd
|
||||||
debian:install:tools: sudo apt install -y imagemagick rsvg-convert ffmpeg yt-dlp shellcheck
|
debian:install:tools: sudo apt install -y imagemagick rsvg-convert ffmpeg yt-dlp shellcheck
|
||||||
docker:install: curl -fsSL -o- https://get.docker.com | sudo sh && sudo usermod -aG docker $USER
|
docker:install: curl -fsSL -o- https://get.docker.com | sudo sh && sudo usermod -aG docker $USER
|
||||||
|
git:config: |
|
||||||
|
printf 'Name: ' && read name
|
||||||
|
printf 'Email: ' && read email
|
||||||
|
printf '[user]\n\tname = %s\n\temail = %s\n' "$name" "$email" > ~/.gitconfig.local
|
||||||
|
echo "Written ~/.gitconfig.local"
|
||||||
ssh:keygen: ssh-keygen -t ed25519 -C "$(git config --global --include user.email)"
|
ssh:keygen: ssh-keygen -t ed25519 -C "$(git config --global --include user.email)"
|
||||||
rust:install: curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y
|
rust:install: curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y
|
||||||
rust:install:tools: cargo install bat fd-find yazi-build
|
rust:install:tools: cargo install bat fd-find yazi-build
|
||||||
|
|||||||
Reference in New Issue
Block a user