Create the directory $ZSH_CUSTOM/wsl-helpers and place the wsl-helpers.plugins.zsh file in that directory.
Created
July 18, 2020 14:50
-
-
Save itzg/61dc5aeb4c0d6ddde927efc3376c99f2 to your computer and use it in GitHub Desktop.
oh-my-zsh custom plugin that helps me develop from within WSL2
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
| function open() { | |
| if [ $# = 0 ]; then | |
| set -- . | |
| fi | |
| explorer.exe "$@" | |
| } | |
| alias ps=powershell.exe | |
| function idea() { | |
| if [ $# = 0 ]; then | |
| set -- . | |
| fi | |
| ideaExe=$(awk '/^start / {print $3}' $(which idea.cmd) | sed -e 's#C:#/mnt/c#' -e 's#\\#/#g') | |
| "$ideaExe" "$@" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment