adapt dmenu -> nenu
This commit is contained in:
parent
e810f6b5f6
commit
94e0935e48
|
@ -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"} &
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in New Issue