Joined March 2014
·

Zhiming Wang

Stanford, CA
·

@zaus Hmm, not sure about that. I looked at the source and saw nothing suspicious; I parsed it with a couple of my parsers and saw nothing special either. After all it's as simple as a code block. In fact, yesterday whenever I copy the source as is and publish as a gist, it is highlighted; whenever I make a tiny change to it, including removing one single character or adding a single linefeed, it's normal. Today I can't even reproduce with the original source. Rather intriguing. (Maybe they broke something in the parser, temporarily? This is unlikely, but who knows...)

@davidhiggins This is irrelevant, but do you know why your gist has a red highlight? I mean:

red markdown

This is the first time I've ever seen a red markdown gist.

Posted to Enabling Git shell completions in OSX over 1 year ago

Though I also use oh-my-zsh (it's awesome), I don't think you need an oh-my-zsh plugin (e.g., gitfast) to do git completion in zsh. Zsh provides a default git completion with some zsh-specific features, and I'm pretty happy with that one.

According to the gitfast plugin:

(The plugin) enables the zsh completion from git.git folks, which is much faster than the official one from zsh. A lot of zsh-specific features are not supported, like descriptions for every argument, but everything the bash completion has, this one does two (as it is using it behind the scenes). Not only is it faster, it should be more robust, and updated regularly to the latest git upstream version.

Posted to Edit Text Like A Pro(grammer) over 1 year ago

There's indeed an editor war, you know. But good humor is always more important :)

Posted to Edit Text Like A Pro(grammer) over 1 year ago

@dmichaelavila It's a religious war!

Posted to Edit Text Like A Pro(grammer) over 1 year ago

@dmichaelavila Yeah, I'm not saying you should never touch vi; I'm saying it's a good idea to export EDITOR=emacs, git config --global core.editor emacs, etc. Of course vi still has the advantage of being installed everywhere. In the rare cases when even vi isn't installed, some familiarity with ed might help, too ;)

Posted to Edit Text Like A Pro(grammer) over 1 year ago

"These commands, familiar to any emacs user, should be known by all programmers, because they are used just about everywhere we deal with text." That's why you should use Emacs instead of vi ;)

Achievements
1 Karma
0 Total ProTip Views