From d2095dc1a846cc544e023c7c33ef0afaac532c0f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 13 Feb 2016 18:24:33 +0100 Subject: bashrc: use the dockerized version of "td" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bashrc b/bashrc index 76c1151..aff66d0 100644 --- a/bashrc +++ b/bashrc @@ -96,6 +96,16 @@ source_maybe $HOME/.g.sh source_maybe $HOME/.gcompletion.sh # The td utility. See: https://github.com/mssola/td +td() { + # TODO: use a proper certificate on the server... + docker run -it \ + -v $HOME/.td:/root/.td \ + -v $HOME/.vimrc:/root/.vimrc:ro \ + -v $HOME/.vim:/root/.vim:ro \ + -e TERM=xterm-256color \ + -e EDITOR=vim \ + mssola/td:latest --tlsverify=false "$@" +} source_maybe $HOME/.tdcompletion.sh # Complete the `docker` command if possible. -- cgit v1.2.3