Topic: https://brettterpstra.com/2014/08/04/shell-tricks-one-git-alias-to-rule-them-all/
hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 251d ago

one windows 10 the part where {printf \"\033[31m%_10s\033[1;37m\", $1} isn't working, I removed _10 to make it work

finda = "!grepalias() { git config --global --get-regexp alias | grep -i \"$1\" | awk -v nr=2 '{sub(/^alias\./,\"\")};{printf \"\033[31m%s\033[1;37m\", $1};{sep=FS};{for (x=nr; x<=NF; x++) {printf \"%s%s\", sep, $x; }; print \"\033[0;39m\"}'; }; grepalias"

hide preview

What's next? verify your email address for reply notifications!

Eddy 10y, 228d ago

Thanks for the 'finda' alias! Do you have a list of your Git aliases online somewhere? I'd be interested in checking it out for ideas. :)

remark link
hide preview

What's next? verify your email address for reply notifications!

ttscoff 10y, 228d ago

I never have, but I'd consider doing it for a future post.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Eddy 10y, 227d ago

Well I for one think that sounds like a great idea! :)

hide preview

What's next? verify your email address for reply notifications!

Gary 10y, 228d ago

Awesome! And very cool bash prompt, at that. What are you using for that? Just a custom command?

remark link
hide preview

What's next? verify your email address for reply notifications!

ttscoff 10y, 228d ago

It uses some stuff from bash_it, but it's mostly custom:

https://gist.github.com/tts...

There's some stuff in there that isn't used, too, as it's kind of always a work in progress...

hide preview

What's next? verify your email address for reply notifications!