From 784e229418d38ee26c8a56b5acf8909f13bf75d6 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 13 Nov 2017 19:36:32 -0800 Subject: [PATCH] Add new bins for forwarding vim colors to remote shells --- assets/default/bin/mosh-vim-forward | 6 ++++++ assets/default/bin/ssh-vim-forward | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100755 assets/default/bin/mosh-vim-forward create mode 100755 assets/default/bin/ssh-vim-forward diff --git a/assets/default/bin/mosh-vim-forward b/assets/default/bin/mosh-vim-forward new file mode 100755 index 0000000..a96d4d8 --- /dev/null +++ b/assets/default/bin/mosh-vim-forward @@ -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)" diff --git a/assets/default/bin/ssh-vim-forward b/assets/default/bin/ssh-vim-forward new file mode 100755 index 0000000..5645e9f --- /dev/null +++ b/assets/default/bin/ssh-vim-forward @@ -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)