Add new bins for forwarding vim colors to remote shells

This commit is contained in:
ViViDboarder 2017-11-13 19:36:32 -08:00
parent ae873dce7f
commit 784e229418
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#! /bin/bash
# mosh-vim-forward forwards only the VIM_COLOR variable
# to a remote shell and attempts to provide a consistent
# shell experience
mosh $* -- sh -c "VIM_COLOR=$VIM_COLOR $(basename $SHELL)"

View File

@ -0,0 +1,6 @@
#! /bin/bash
# ssh-vim-forward forwards only the VIM_COLOR variable
# to a remote shell and attempts to provide a consistent
# shell experience
ssh -t $* VIM_COLOR=$VIM_COLOR $(basename $SHELL)