Open anki-code opened 4 years ago
@frederickjh could you please create xxh.fish
file for seamless mode?
I am not sure I totally understand seamless mode. I have read the description and looked at the files for the other shells.
What all needs to be moved to the remote host or configured in the file xxh.fish
for seamless mode?
In short: seamless mode script just get environment variables which described in env
files in plugins and add it as base64 encoded +heb
arguments to xxh. For example if you have fish theme with FISH_THEME
environment variable you can create xxh plugin for your theme ans add FISH_THEME
to env
file. When you run source xxh.fish
the FISH_THEME
variable will be on host and you will be in your lovely theme.
What seamless mode script do:
env
file in the pluginsenv
file<plugin_name>_EXE_<variable)_name>
+heb
argument+heb
argumentsI think the main question here is step 3 because bash command declare -p <variable>
returns valid bash code to create <variable>
. I don't know the analog in fish. In fact we should get the variable and create the fish code to init it with saving the type of variable. For example for xonsh I used repr
function.
eval
the code.The description is looks tricky :) I understand if you haven't enough time and you don't need this I will not force you )
Here is the seamless mode demo for bash - https://asciinema.org/a/314508
:ok_hand: I still don't understand all that but I did understand what you are missing.
I think that the Fish shell equivalent to declare -p
is set
. Just running set
will list all variables. Running set -S
shows information about the variables. I don't see one command that does this all together.
It's helpful! Thanks!
Examples to start:
For community: ⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 comment