mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[devscripts] Fix filename/directory Bash completions (#13620)
Closes #13619 Authored by: barsnick
This commit is contained in:
		| @@ -10,9 +10,13 @@ __yt_dlp() | |||||||
|     diropts="--cache-dir" |     diropts="--cache-dir" | ||||||
|  |  | ||||||
|     if [[ ${prev} =~ ${fileopts} ]]; then |     if [[ ${prev} =~ ${fileopts} ]]; then | ||||||
|  |         local IFS=$'\n' | ||||||
|  |         type compopt &>/dev/null && compopt -o filenames | ||||||
|         COMPREPLY=( $(compgen -f -- ${cur}) ) |         COMPREPLY=( $(compgen -f -- ${cur}) ) | ||||||
|         return 0 |         return 0 | ||||||
|     elif [[ ${prev} =~ ${diropts} ]]; then |     elif [[ ${prev} =~ ${diropts} ]]; then | ||||||
|  |         local IFS=$'\n' | ||||||
|  |         type compopt &>/dev/null && compopt -o dirnames | ||||||
|         COMPREPLY=( $(compgen -d -- ${cur}) ) |         COMPREPLY=( $(compgen -d -- ${cur}) ) | ||||||
|         return 0 |         return 0 | ||||||
|     fi |     fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 barsnick
					barsnick