Compare commits
No commits in common. "0f39033c5dfb5539c87e067954aa1e95426276f6" and "c097159c054a5bb59767a520d3ff9362264a8dc2" have entirely different histories.
0f39033c5d
...
c097159c05
4 changed files with 6 additions and 13 deletions
|
@ -28,6 +28,5 @@ A feature-barren DOS clone of `ls` that hides Windows hidden files. Relies on
|
||||||
- `dos.sh`: Simple wrapper for executing Windows commands directly.
|
- `dos.sh`: Simple wrapper for executing Windows commands directly.
|
||||||
- `elevate.sh`: Elevate WSL (`-l`) or Windows (`-w`) commands from WSL.
|
- `elevate.sh`: Elevate WSL (`-l`) or Windows (`-w`) commands from WSL.
|
||||||
- `explorer.sh`: Launch explorer from WSL.
|
- `explorer.sh`: Launch explorer from WSL.
|
||||||
- `pwsh.sh`: Launch PowerShell Core.
|
|
||||||
- `terminal.sh`: Launch Windows Terminal.
|
- `terminal.sh`: Launch Windows Terminal.
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,12 @@ if [[ "$1" == "-l" ]]; then
|
||||||
elif [[ "$1" == "-w" ]]; then
|
elif [[ "$1" == "-w" ]]; then
|
||||||
mode='dos'
|
mode='dos'
|
||||||
shift
|
shift
|
||||||
# error if no target for DOS
|
fi
|
||||||
if [ "$#" -eq 0 ]; then
|
|
||||||
echo "elevate: DOS mode requires a target"
|
# error if no target
|
||||||
exit 3
|
if [ "$#" -eq 0 ]; then
|
||||||
fi
|
echo "elevate: no target"
|
||||||
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# consume target based on mode
|
# consume target based on mode
|
||||||
|
|
|
@ -5,6 +5,5 @@ install DIR="~/.bin":
|
||||||
cp dos.sh {{DIR}}/dos
|
cp dos.sh {{DIR}}/dos
|
||||||
cp elevate.sh {{DIR}}/elevate
|
cp elevate.sh {{DIR}}/elevate
|
||||||
cp explorer.sh {{DIR}}/explorer
|
cp explorer.sh {{DIR}}/explorer
|
||||||
cp pwsh.sh {{DIR}}/pwsh
|
|
||||||
cp terminal.sh {{DIR}}/terminal
|
cp terminal.sh {{DIR}}/terminal
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/bash
|
|
||||||
|
|
||||||
cd '/mnt/c/Program Files/WindowsApps/'
|
|
||||||
target=`find Microsoft.PowerShell* -name 'pwsh.exe'`
|
|
||||||
"$target"
|
|
||||||
|
|
Loading…
Reference in a new issue