sway: fix sway-launcher

whence is a zsh builtin, use bash's compgen function to get a list
of available commands
This commit is contained in:
teutat3s 2023-05-16 15:04:29 +02:00
parent 33720a4f5a
commit b9a6a39b96
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -12,7 +12,7 @@ with self; ''
# Get shell command list # Get shell command list
# This may include the occasional non-executable file # This may include the occasional non-executable file
command_list=$({ whence -wm '*' | sed 's/:[^:]*$//' }) command_list=$({ compgen -c | sed 's/:[^:]*$//'; })
# read existing command history # read existing command history
if [ -f "$HIST_FILE" ]; then if [ -f "$HIST_FILE" ]; then