clauncher/clauncher-update

10 lines
336 B
Bash
Executable File

#!/usr/bin/env bash
cacheDir=${XDG_CACHE_HOME:-"$HOME/.cache"}
configDir=${XDG_CONFIG_HOME:-"$HOME/.config"}/clauncher
cache="$cacheDir/launcher_opts"
"$configDir"/capture.zsh 'open -a' | sed -e 's/.*-a//' -e "s/\\\//g" -e "s/\r//g" | grep -v -f "$configDir"/.open_ignore | (cat "$configDir"/.open_add; cat -) | sort -u > "$cache"