Added -y option for install script
This commit is contained in:
parent
4ceb520c1d
commit
802ce0400f
6
install
6
install
@ -59,6 +59,11 @@ else
|
|||||||
fzf_cmd="$ruby $fzf_base/fzf"
|
fzf_cmd="$ruby $fzf_base/fzf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "-y" ]] ; then
|
||||||
|
# If install -y is called, force auto completion and key_bindings to be enabled
|
||||||
|
auto_completion=0
|
||||||
|
key_bindings=0
|
||||||
|
else
|
||||||
# Auto-completion
|
# Auto-completion
|
||||||
read -p "Do you want to add auto-completion support? ([y]/n) " -n 1 -r
|
read -p "Do you want to add auto-completion support? ([y]/n) " -n 1 -r
|
||||||
echo
|
echo
|
||||||
@ -70,6 +75,7 @@ read -p "Do you want to add key bindings? ([y]/n) " -n 1 -r
|
|||||||
echo
|
echo
|
||||||
[[ ! $REPLY =~ ^[Nn]$ ]]
|
[[ ! $REPLY =~ ^[Nn]$ ]]
|
||||||
key_bindings=$?
|
key_bindings=$?
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
for shell in bash zsh; do
|
for shell in bash zsh; do
|
||||||
|
Loading…
Reference in New Issue
Block a user