Skip to content

Instantly share code, notes, and snippets.

View DzeryCZ's full-sized avatar
🎸

Jaroslav Živný DzeryCZ

🎸
  • ErsteBank
  • Vienna
View GitHub Profile
@DzeryCZ
DzeryCZ / Run (.exe) WSL Without Extension
Created April 13, 2018 21:17
Run Windows Programs (.exe) from WSL as Fallback without extension
# Add at the end of your ~/.bashrc file this content:
# Run Windows Programs (.exe) from WSL as Fallback without extension
eval "$(echo "orig_command_not_found_handle()"; declare -f command_not_found_handle | tail -n +2)"
command_not_found_handle()
{
cmd=$1
shift
args=( "$@" )