浏览代码

made dmenu_path the way anydot proposed in response to Jukka

master
Anselm R. Garbe 17 年前
父节点
当前提交
dfe95cb546
共有 1 个文件被更改,包括 8 次插入15 次删除
  1. +8
    -15
      dmenu_path

+ 8
- 15
dmenu_path 查看文件

@@ -1,22 +1,15 @@
#!/bin/sh
CACHE=$HOME/.dmenu_cache
UPTODATE=1
IFS=:

uptodate() { [ $UPTODATE -eq 1 ]; }

if test ! -f $CACHE
then
UPTODATE=0
fi

if uptodate
then
for dir in $PATH
do
test $dir -nt $CACHE && { UPTODATE=0; break; }
done
fi
uptodate() {
test ! -f $CACHE && return 1
for dir in $PATH
do
test $dir -nt $CACHE && return 1
done
return 0
}

if ! uptodate
then


正在加载...
取消
保存