diff options
| -rwxr-xr-x | swenu-path | 6 | ||||
| -rwxr-xr-x | swenu-run | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/swenu-path b/swenu-path new file mode 100755 index 0000000..a720d5c --- /dev/null +++ b/swenu-path @@ -0,0 +1,6 @@ +#!/bin/sh + +IFS=: +for dir in $PATH; do + [ -e ${dir} ] && find ${dir} -executable -printf '%f\n' +done | sort -u diff --git a/swenu-run b/swenu-run new file mode 100755 index 0000000..ccb3347 --- /dev/null +++ b/swenu-run @@ -0,0 +1,2 @@ +#!/bin/sh +swenu-path | swenu "$@" | ${SHELL:-"/bin/sh"} & |
