Skip to content

Instantly share code, notes, and snippets.


Xiao Liang yxliang01

Block or report user

Report or block yxliang01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
yxliang01 / vscode-mypy.bash
Created May 29, 2019
A wrapper for correcting vscode-python extension invokes mypy incorrect problem.
View vscode-mypy.bash
# Author: Xiao Liang <>
# Should invoke this in the root package which is also supposed to be the VS Code workspace root
args=( "$@" )
# For debugging
yxliang01 / _tmux_pane_words.zsh
Created Jan 19, 2018 — forked from blueyed/_tmux_pane_words.zsh
ZSH configuration to complete words from tmux pane(s)
View _tmux_pane_words.zsh
# Complete words from tmux pane(s) {{{1
# Source:
# Gist:
_tmux_pane_words() {
local expl
local -a w
if [[ -z "$TMUX_PANE" ]]; then
_message "not running inside tmux!"
return 1
yxliang01 / robbyrussell-hostname.zsh-theme
Created Aug 26, 2017 — forked from SteelPangolin/robbyrussell-hostname.zsh-theme
Tweak robbyrussell ZSH theme to prepend hostname
View robbyrussell-hostname.zsh-theme
local hostname="%{$fg_bold[black]%}%m"
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
PROMPT='${hostname} ${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
You can’t perform that action at this time.