-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New p module with FQ-folder-names #22
base: master
Are you sure you want to change the base?
Conversation
@papandreou I know that you at least used to use the |
I'm still using My |
If you don't want to move from a flat to a nested structure then no :-) This is my idea for an alternate take on I haven't made up my mind on it yet, but it's been something I've wanted to test out for years. :-) |
I haven't really experienced any downsides from using a flat structure, even though my |
Then I suppose this isn't for you. But that's also valuable feedback. Thanks :) I've been thinking about doing this for a while. I'm still on the fence wether it's the right thing to do, so I'm trying it out for a while. I have a couple of issues:
I suppose the first two of these problems could be solved by just using the flat structure and naming two clashing repos with a more full version of their origin:
But the last one is the one I have struggled a bit with... I wanted to essentially be able to do |
I think I'm well within over-optimization territory and summoning you might just be what I need to refocus myself 😅 |
The idea is to work as
p
but store repositories under their full origin url as the folder path - e.g.~/Projects/github.com/gustavnikolaj/dotfiles
This is entirely parallel to the p-script and I don't plan on changing the original. There's value in it as it is.
I load the new variant as below in my
.bashrc
file.The command itself is actually called
gg
at the moment. It's easier to type thanp2
and there was already something called Par Packagerpp
in/usr/bin
... I don't know what the final name will be.Usage:
To move an existing repo into the structure there's a script called
gg-move
.Planned features
go to dir or checkout