Skip to content

Instantly share code, notes, and snippets.

@bloatfan
Last active May 26, 2021 15:20
Show Gist options
  • Save bloatfan/8d1f4c737abdfcc4f9f361d370180f32 to your computer and use it in GitHub Desktop.
Save bloatfan/8d1f4c737abdfcc4f9f361d370180f32 to your computer and use it in GitHub Desktop.
bash 补全文件
# bash
https://stackoverflow.com/questions/33632668/bash-tab-completion-of-filenames-after-arguments
complete -D -o default
# zsh
https://unix.stackexchange.com/questions/333530/zsh-path-file-name-completion-on-file-arguments/333543#333543?newreg=65c5031ab2d6429984db9f2c4a26ac3c
setopt magicequalsubst
以上设置可以解决参数补全文件名的问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment