amaya382 / anyrc Goto Github PK
View Code? Open in Web Editor NEW:shell: Bring your shell environment to anywhere
License: Apache License 2.0
:shell: Bring your shell environment to anywhere
License: Apache License 2.0
such as vim, tmux or zsh.
Use statically built binaries or sth.
ref.
Hi,
you have a nice project working here. Thanks for your work!
I'm wondering what is your project "vision" in terms of maintenance and longevity? By this i mean, do you intend to keep it up to date for as long as you can or is it just a temporary project that can be abandoned at any time?
I ask because i used to use a similar tool called sshrc (which you actually refer to in the readme) which was suddenly abandoned and the account even removed, and this let many users with an outdated/broken tool.
Thank you!
Not via any file to handle credentials
Setting 700
obviously is better for security reason
how install\support on macos in zsh ?
Error scenario
# ok
$ dockerrc exec container bash
# error
$ dockerrc exec -it container bash
the input device is not a TTY
the input device is not a TTY
Line 62 in 2c581c4
/tmp/anyrc.xxxxxx$\r
?
TMP_DIR="$(docker exec ${DOCKER_OPTS} ${DOCKER_CONTAINER} mktemp -d /tmp/anyrc.XXXXXX) | tr -d '\r'"
e.g., Enable to run the following...
dockerrc run alpine sh
and then
apk add --no-cache bash
bash # work w/ anyrc in the bash
# local
sshrc some-host
# remote
false # return 1
exit # exit the first shell
exit # exit the second shell and return to local
# local
There seem to be issues w/ other remote envs.
Hello,
I use those kind of functions for quite some time now, because I already used it when its was Russell91/sshrc, and as a consequence and as quoted in reference, I'd like to make a surc as root for example and preserve my user's environment variables in order to keep my powerline prompt and other stuff like that working without having to install it under root for example.
It was possible with sshrc by writing a .sshrc file which must be the equivalent of your .anyrc file like the following :
**# Define surc function to keep sshrc settings when su
surc () {
[ "$1" = "-" ] && shift
local USER="$1"
if [ -z "${USER}" ]; then
USER="root"
chmod +x "${SSHHOME}" 2>/dev/null
sudo -u "${USER}" SSHHOME="${SSHHOME}" "${SSHHOME}/bashsshrc"
fi
}**
It was the method suggested at that time, so my question now is "have you got an equivalent already present somewhere that i haven"t seen, or would it be possible to integrate it according to you ?
Thank you in advance for your answer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.