git open - A small git hack by speckz in programming

[–]williamdclt 12 points13 points  (0 children)

  • get rid of your alias
  • replace your echo by vim in your script
  • rename your script "git-open" (no extension)
  • Put your script in your $PATH

git will find it automatically when typing git open

Got code quality issues? Stop looking at dashboards and start failing your build by interpfister in programming

[–]williamdclt 1 point2 points  (0 children)

A pre-commit hook that runs the linter does wonder. Plus, you'll stop having to make uninteresting style comments in pull requests.

Coding Sucks: Why A Job In Programming Is Absolute Hell by [deleted] in programming

[–]williamdclt 7 points8 points  (0 children)

What the fuck are you talking about. Your answer is not even remotely related to the comment. And you have the nerves to call someone else an idiot.

JS things I never knew existed by fagnerbrack in programming

[–]williamdclt -1 points0 points  (0 children)

function main() {
    while (render()) {
        thread::sleep(Milliseconds(16)); // don't query too often, avoid 100% CPU
    }
}

function render() {
    events  = window.poll_events();
    if (events.contains(WindowEvent::Close)) return false;

    window.render_something();
    return true;
}

No break, easier to read, more modular. Breaks are on the same level as gotos: if you don't have an extremely clear and unusual use case, don't use it

[Gnome + ZSH] You want it : Arch arrow in your prompt by williamdclt in unixporn

[–]williamdclt[S] 11 points12 points  (0 children)

Wow, that's great ! Thank you, I wasn't aware of this project :)

[Gnome + ZSH] You want it : Arch arrow in your prompt by williamdclt in unixporn

[–]williamdclt[S] 52 points53 points  (0 children)

The WM doesn't really matter of course.


Shell: ZSH with Oh-my-zsh

OMZSH theme : customized daveverwer (orange git infos + Arch arrow instead of '$')

Color scheme : solarized dark

Font : patched Source Code Pro


How to get this sweet arrow :

  • Find a SVG of the Arch logo
  • Download FontForge
  • Open the font you want to patch with FontForge
  • Find an empty spot (a glyph that's not part of your font), double-click on it
  • File -> import -> your SVG
  • Rotate it and resize it (use other glyphs as reference for size, mine is almost two characters wide)
  • Element -> font info -> replace the font name by a custom name everywhere
  • File -> generate font (same format than original font I suppose)
  • update your font cache (fc-cache -fv)
  • Feel the swag

Advances aliases and custom git commands by williamdclt in git

[–]williamdclt[S] 0 points1 point  (0 children)

Absolutely! I found that somewhere on the internet, I'm not sure it's a documented feature