Skip to content

Instantly share code, notes, and snippets.

@WaffleLapkin
Created April 11, 2024 13:34
Show Gist options
  • Save WaffleLapkin/92ff6cdf00bb969c15e37d0850d3627f to your computer and use it in GitHub Desktop.
Save WaffleLapkin/92ff6cdf00bb969c15e37d0850d3627f to your computer and use it in GitHub Desktop.
A lil script to list current branches on all my rustc checkouts
#!/usr/bin/fish
ssh dev-desktop "
hostname;
cd ~/rust-a && echo ' ' (pwd) ':' (git branch --show-current);
cd ~/rust-b && echo ' ' (pwd) ':' (git branch --show-current);
cd ~/rust-c && echo ' ' (pwd) ':' (git branch --show-current);
cd ~/rust-lib && echo ' ' (pwd) ':' (git branch --show-current);
cd ~/rust-tsk && echo ' ' (pwd) ':' (git branch --show-current);
"
ssh dev-desktop-2 "
hostname;
cd ~/rust-u && echo ' ' (pwd) ':' (git branch --show-current);
cd ~/rust-v && echo ' ' (pwd) ':' (git branch --show-current);
cd ~/rust-w && echo ' ' (pwd) ':' (git branch --show-current);
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment