Füge Fish Shell Completion hinzu
- Vollständige Completion für Fish Shell (completions/ntu.fish) - Unterstützt alle Flags und Optionen - Path-Completion für Verzeichnisse und Dateien - README um Fish-Installation erweitert Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e4c8b9e780
commit
e872cefe54
2 changed files with 23 additions and 1 deletions
|
|
@ -88,10 +88,12 @@ sudo cp .NameToUnix.conf /etc/NameToUnix/config.toml # Copy config file to
|
|||
mkdir -p ~/.config/NameToUnix/ # Create a personal config directory for NameToUnix
|
||||
cp .NameToUnix.conf ~/.config/NameToUnix/config.toml # Copy config file to this personal directory
|
||||
|
||||
# Bash-Completion (optional)
|
||||
# Shell-Completion (optional)
|
||||
sudo cp completions/ntu.bash /etc/bash_completion.d/ntu # Bash completion
|
||||
# Oder für Zsh:
|
||||
sudo cp completions/_ntu /usr/share/zsh/site-functions/_ntu # Zsh completion
|
||||
# Oder für Fish:
|
||||
sudo cp completions/ntu.fish /usr/share/fish/vendor_completions.d/ntu.fish # Fish completion
|
||||
|
||||
# Manpage (optional)
|
||||
sudo cp man/ntu.1 /usr/share/man/man1/ # Install manual page
|
||||
|
|
|
|||
20
completions/ntu.fish
Normal file
20
completions/ntu.fish
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Fish completion for ntu (NameToUnix)
|
||||
|
||||
# Main command
|
||||
complete -c ntu -f -d 'Sanitize file and directory names to Unix conventions'
|
||||
|
||||
# Options
|
||||
complete -c ntu -s q -l quiet -d 'Suppress output (no rename information)'
|
||||
complete -c ntu -s n -l dry-run -d 'Show what would be renamed without making changes'
|
||||
complete -c ntu -l no-changes -d 'Alias for --dry-run'
|
||||
complete -c ntu -s f -l force -d 'Overwrite existing files'
|
||||
complete -c ntu -s e -l exclude -d 'Exclude files matching pattern' -r
|
||||
complete -c ntu -s v -l verbose -d 'Show verbose debug information'
|
||||
complete -c ntu -l modify-root -d 'Allow renaming the root directory'
|
||||
complete -c ntu -l special -d 'Process symbolic links and special files'
|
||||
complete -c ntu -l no-color -d 'Disable colored output'
|
||||
complete -c ntu -s h -l help -d 'Print help information'
|
||||
complete -c ntu -s V -l version -d 'Print version information'
|
||||
|
||||
# File/directory completion for paths
|
||||
complete -c ntu -a '(__fish_complete_path)' -d 'Path to process'
|
||||
Loading…
Add table
Add a link
Reference in a new issue