From f377ae99a5ef562818bfb1d94b56919f9ebaf04a Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Mon, 12 Mar 2018 12:01:41 -0400 Subject: [PATCH] Enable history in iex, add configuration --- .gitmodules | 3 +++ bash/.profile | 2 ++ config.sh | 1 + iex/.iex.exs | 2 ++ vim/.vim/bundle/elm-vim | 1 + 5 files changed, 9 insertions(+) create mode 100644 iex/.iex.exs create mode 160000 vim/.vim/bundle/elm-vim diff --git a/.gitmodules b/.gitmodules index 173d102..e9ca4df 100644 --- a/.gitmodules +++ b/.gitmodules @@ -40,3 +40,6 @@ [submodule "vim/.vim/bundle/vim-gitgutter"] path = vim/.vim/bundle/vim-gitgutter url = https://github.com/airblade/vim-gitgutter +[submodule "vim/.vim/bundle/elm-vim"] + path = vim/.vim/bundle/elm-vim + url = https://github.com/ElmCast/elm-vim diff --git a/bash/.profile b/bash/.profile index 2a4441d..58a7698 100644 --- a/bash/.profile +++ b/bash/.profile @@ -66,5 +66,7 @@ source $HOME/.asdf/completions/asdf.bash source $HOME/.install/google-cloud-sdk/completion.bash.inc source $HOME/.install/google-cloud-sdk/path.bash.inc +alias iex="iex --erl \"-kernel shell_history enabled\"" + [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion diff --git a/config.sh b/config.sh index fc0f38a..20082d0 100755 --- a/config.sh +++ b/config.sh @@ -4,6 +4,7 @@ stow -t ~ bash stow -t ~ screen stow -t ~ vim stow -t ~ slate +stow -t ~ iex #rm -f .screenrc #ln -s ~/Code/config/screenrc .screenrc diff --git a/iex/.iex.exs b/iex/.iex.exs new file mode 100644 index 0000000..2c3eb1a --- /dev/null +++ b/iex/.iex.exs @@ -0,0 +1,2 @@ +IEx.configure(inspect: [limit: 10, pretty: true], history_size: 10_000) +IO.puts "History is enabled, inspect is configured." diff --git a/vim/.vim/bundle/elm-vim b/vim/.vim/bundle/elm-vim new file mode 160000 index 0000000..ae53153 --- /dev/null +++ b/vim/.vim/bundle/elm-vim @@ -0,0 +1 @@ +Subproject commit ae5315396cd0f3958750f10a5f3ad9d34d33f40d