diff options
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -385,7 +385,23 @@ updatevimrc() { ./link-vimrc.sh cd $OLDWD } - +updatevimrc_basic() { + pull -u "$VIM_BASIC_URL" -f ~/.vimrc +} +placebasicvimrc() { + if [ -z "$1" ] ; then + echo All arguments are passed to SSH, but you need at least one + return + fi + _TMP="$(mktemp)" + if [ -z "$_TMP" ] ; then + echo Cannot continue, temp file cannot be zero length!; + return + fi + pull -u "$VIM_BASIC_URL" -f "$_TMP" + cat "$_TMP" | ssh "$@" "cat - > ~/.vimrc" + rm "$_TMP" +} setcolorterminal() { case $TERM in @@ -465,6 +481,7 @@ export PATH="$GOPATH/bin:$PATH" UPDATE_URL="https://www.rygel.us/etc/" VIM_GIT_URL="https://git.riedstra.us/mitch/vim-cfg.git" +VIM_BASIC_URL="https://git.riedstra.us/mitch/vim-cfg.git/plain/basic.vim" PRELOAD="$HOME/${SHELL_CONFIG}.pre" LOCAL="$HOME/${SHELL_CONFIG}.local" |
