adapt dmenu -> nenu

This commit is contained in:
randomuser 2020-12-20 18:07:28 -06:00
parent e810f6b5f6
commit 94e0935e48
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
dmenu_path () {
nenu_path () {
IFS=" :"
for i in $PATH; do
for j in "$i"/*; do
@ -8,4 +8,4 @@ dmenu_path () {
done
}
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
nenu_path | nenu "$@" | ${SHELL:-"/bin/sh"} &

View File

@ -1,7 +1,7 @@
#!/bin/sh
while true; do
choice=`ls -a | dmenu`;
choice=`ls -a | nenu`;
[ -d $choice ] && cd $choice;
[ -f $choice ] && printf "%s\n" "$choice" && exit 0;
[ "$choice" = '!quit' ] && exit 0;