mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
When there is a directory and a file in $PATH of the same name `foo`, we display `foo`, as well as `foo/` in the prompt, but selecting either one of them will invariably run or raise the directory, as this test is done beforehand. Since directories already carry a trailing forward slash from the shell prompt's `getShellCompl`, this is easily disambiguated by incorporating an additional check. It is duly noted that the same problem also exists for files in the current directory. This could be fixed in a similar way (adding a unique suffix to files and checking for that), but since this would involve changing `getShellCompl` and no-one has complained about this so far, it was deemed "not worth it" for now. Fixes: https://github.com/xmonad/xmonad-contrib/issues/616