Created
March 19, 2021 01:34
-
-
Save LuanVSO/5fa3a7f0df339d8dc5166865df18527f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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" ] && | |
if ((!precmd_functions[(I)__wt_osc9_9])) ; then | |
precmd_functions+=(__wt_osc9_9) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment