Skip to content

Commit

Permalink
Make up-arrow autocomplete more nicerer in the vagrant box
Browse files Browse the repository at this point in the history
  • Loading branch information
philgyford committed Aug 8, 2016
1 parent ff6f7e1 commit 6d5ca5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# PostgreSQL Server port forwarding
config.vm.network "forwarded_port", host: 15432, guest: 5432

# You can provision with just one of these scripts by user its name, eg:
# You can provision with just one of these scripts by using its name, eg:
# $ vagrant provision --provision-with postgresql

config.vm.provision 'build',
Expand All @@ -51,6 +51,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
settings['use_geodjango'],
]

config.vm.provision 'build',
type: 'shell',
path: 'config/vagrant/bash_setup.sh'

config.vm.provision 'git',
type: 'shell',
path: 'config/vagrant/git_setup.sh'
Expand Down
15 changes: 15 additions & 0 deletions config/vagrant/bash_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

echo "=== Begin Vagrant Provisioning using 'config/vagrant/bash_setup.sh'"

######################################################################
# Will make up-arrow only fetch previous commands based on what we've already typed:
cat > /home/vagrant/.inputrc <<EOF
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
EOF

echo "=== End Vagrant Provisioning using 'config/vagrant/bash_setup.sh'"

0 comments on commit 6d5ca5e

Please sign in to comment.