forked from toolshed/abra
fix: source autocompletion on the current terminal
This commit is contained in:
parent
e99114e695
commit
7f0a74d3c3
@ -84,6 +84,7 @@ EXAMPLE:
|
|||||||
sudo mkdir -p /etc/bash_completion.d/
|
sudo mkdir -p /etc/bash_completion.d/
|
||||||
sudo cp %s /etc/bash_completion.d/abra
|
sudo cp %s /etc/bash_completion.d/abra
|
||||||
echo "source /etc/bash_completion.d/abra" >> ~/.bashrc
|
echo "source /etc/bash_completion.d/abra" >> ~/.bashrc
|
||||||
|
source /etc/bash_completion.d/abra
|
||||||
# To test, run the following: "abra app <hit tab key>" - you should see command completion!
|
# To test, run the following: "abra app <hit tab key>" - you should see command completion!
|
||||||
`, autocompletionFile))
|
`, autocompletionFile))
|
||||||
case "zsh":
|
case "zsh":
|
||||||
@ -92,6 +93,7 @@ echo "source /etc/bash_completion.d/abra" >> ~/.bashrc
|
|||||||
sudo mkdir -p /etc/zsh/completion.d/
|
sudo mkdir -p /etc/zsh/completion.d/
|
||||||
sudo cp %s /etc/zsh/completion.d/abra
|
sudo cp %s /etc/zsh/completion.d/abra
|
||||||
echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc
|
echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra" >> ~/.zshrc
|
||||||
|
source /etc/zsh/completion.d/abra
|
||||||
# to test, run the following: "abra app <hit tab key>" - you should see command completion!
|
# to test, run the following: "abra app <hit tab key>" - you should see command completion!
|
||||||
`, autocompletionFile))
|
`, autocompletionFile))
|
||||||
case "fish":
|
case "fish":
|
||||||
@ -100,6 +102,7 @@ echo "PROG=abra\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/completion.d/abra
|
|||||||
sudo mkdir -p /etc/fish/completions
|
sudo mkdir -p /etc/fish/completions
|
||||||
sudo cp %s /etc/fish/completions/abra
|
sudo cp %s /etc/fish/completions/abra
|
||||||
echo "source /etc/fish/completions/abra" >> ~/.config/fish/config.fish
|
echo "source /etc/fish/completions/abra" >> ~/.config/fish/config.fish
|
||||||
|
source /etc/fish/completions/abra
|
||||||
# to test, run the following: "abra app <hit tab key>" - you should see command completion!
|
# to test, run the following: "abra app <hit tab key>" - you should see command completion!
|
||||||
`, autocompletionFile))
|
`, autocompletionFile))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user