Skip to content

Instantly share code, notes, and snippets.

@skyline75489
skyline75489 / prompt.sh
Last active December 18, 2022 08:44
Windows Terminal OSC 9;9 for Bash & Zsh in WSL
__wt_osc9_9 () {
_win_path=$(wslpath -m $(pwd))
printf "\033]9;9;%s\033\\" "$_win_path"
}
[ -n "$BASH_VERSION" ] && [ -n "$WT_SESSION" ] && PROMPT_COMMAND="__wt_osc9_9"
[ -n "$ZSH_VERSION" ] && [ -n "$WT_SESSION" ] && precmd_functions+=(__wt_osc9_9)
true
@jackblk
jackblk / mouse.gif
Last active January 25, 2021 07:57 — forked from primaryobjects/mouse.gif
View the mouse pointer position in Selenium Nightwatch. Execute this code when the page loads or in the javascript console. Use mouse.py for Selenium Python. See https://stackoverflow.com/a/35867777
mouse.gif