aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2016-02-13 18:24:33 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2016-02-13 18:24:33 +0100
commitd2095dc1a846cc544e023c7c33ef0afaac532c0f (patch)
tree4e61d98da56e6f0e1531a5b177a81a9ea1d22081 /bashrc
parente94e4d43d71ed9c9791691d55c67c80562993097 (diff)
downloaddotfiles-d2095dc1a846cc544e023c7c33ef0afaac532c0f.tar.gz
dotfiles-d2095dc1a846cc544e023c7c33ef0afaac532c0f.zip
bashrc: use the dockerized version of "td"
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc10
1 files changed, 10 insertions, 0 deletions
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.