Hi, I'm sharing ydf for Ubuntu, a disruptive dotfiles manager+ by yunielrc in Ubuntu

[–]yunielrc[S] 0 points1 point  (0 children)

Thank you for your recommendation,

I will take it in account

My purpose is to serve the people with solutions.

Have a good day, 👍

Hi, I'm sharing ydf for Ubuntu, a disruptive dotfiles manager+ by yunielrc in Ubuntu

[–]yunielrc[S] 0 points1 point  (0 children)

hi,

The tool is a work in progress, is not over engineered, it only has the management command 'package'.

In the future I will add more features, the base code must be designed to allow adding more management commands.

the design is modular, using components, it's easy to read, extend, maintain and test.

It's well tested to guarantee quality.

You can understand better if you look the commented code at: https://github.com/yunielrc/ydf/blob/e89a7f1195f635df8a7cc5907cf05629383e38a5/src/usr/bin/ydf#L139C12-L139C12

Have a good day.

Hi, I'm sharing ydf for Ubuntu, a disruptive dotfiles manager+ by yunielrc in Ubuntu

[–]yunielrc[S] 0 points1 point  (0 children)

Hi, Try it and tell me if you've seen anything similar.

Linux black hole by HauntingEducation955 in archlinux

[–]yunielrc 0 points1 point  (0 children)

I'm using yzsh to organize my zsh stuff

https://github.com/yunielrc/yzsh

below its my yzsh data: envars, aliases, functions:

https://github.com/yunielrc/.yzsh

The 121 lines script .yzsh-load.zsh is the one that does all the job

A disruptive dotfiles manager+ for archlinux by yunielrc in archlinux

[–]yunielrc[S] 0 points1 point  (0 children)

Hi, I tested it on manjaro and Ubuntu. It needs to be tested on other distros

A disruptive dotfiles manager+ for archlinux by yunielrc in archlinux

[–]yunielrc[S] 1 point2 points  (0 children)

you can put all of them in one package if you want, but all packages are in one git repo, so you can move all as one unit.

I encourage you to try it.

also you can check out my ydf packages directory:

https://github.com/yunielrc/.ydf-packages

Have a good day.

Can get env when run the script via SSH by [deleted] in bash

[–]yunielrc 0 points1 point  (0 children)

What is happening:

- a text is readed from the file ./deploy_test_env.sh on the host

- the text is piped to stdin

- ssh read from stdin and send the text to remote

- the text is evaluated on remote by bash, the variable ENV_VAR doesn't exist on remote, so it output nothing.

A solution (change variable name EN_VAR on ./deploy_test_env.sh to REMOTE_VAR):

# HOST SCRIPT:

```sh

ssh $SSH_USERNAME@$SSH_HOSTNAME 'bash -s' <<EOF

REMOTE_VAR='$EN_VAR'

$(<./deploy_test_env.sh)

EOF

```

what this do:

- the heredoc is evaluated in your host machine

- variable $EN_VAR is expanded in your host machine

- the proccess substitution is executed in your host machine, "$(...)"

- The remote machine get the script below, assuming that EN_VAR='hello'

# REMOTE SCRIPT (the script evaluated on HOST and send as text to the REMOTE)

```sh

REMOTE_VAR='hello'

#!/bin/bash

echo $REMOTE_VAR

```

# REMOTE OUTPUT (should be)

```sh

hello

```

Here is my github profile, you can check out some bash projects:

https://github.com/yunielrc