winure/scripts/terminal.sh

12 lines
213 B
Bash
Raw Normal View History

#!/usr/bin/bash
wrapper='dos'
if [[ "$1" == "-e" ]]; then
wrapper='elevate -w'
fi
cd '/mnt/c/Program Files/WindowsApps/'
target=`find Microsoft.WindowsTerminal* -name 'WindowsTerminal.exe'`
$wrapper "$target"