Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature/Fix] Backup dotfiles #73

Merged
merged 244 commits into from
Jul 12, 2021
Merged

[Feature/Fix] Backup dotfiles #73

merged 244 commits into from
Jul 12, 2021

Conversation

gtrabanco
Copy link
Owner

@gtrabanco gtrabanco commented Jul 11, 2021

Description

This feature performs a backup of the current dotfiles on installation by parsing the symlinks files with dotbot format. Thats the reason because this is a feature and not only a fix.

This also separate core symlinks files from user files.

Also adds installation of semver submodule binary in user $DOTFILES_PATH/bin, it is recommended to adds to .gitignore the value: bin/semver but nothing should fail if you do not do that. It is just a recommendation

Related Issue

CodelyTV#76

Motivation and Context

Make a backup that can change depending on dotbot yaml files, would be nice a backup of only .bashrc and .zshrc files but this improves a lot that wanted change.

gtrabanco and others added 30 commits February 13, 2021 17:45
…res/fixes in other PRs. Added feature of autoupdate dotly
…otly, fixed all the way init-scripts were loaded because they fail. Fixed some issues.
* Added new functions to get the current script_name or script_path where the functions were run
* Added function to conver mayus to lower
`mas` has added support for Apple Silicon: mas-cli/mas#310
…led (#107)

Co-authored-by: David Asensio Cañas <david.asensio@lifullconnect.com>
In case of having multiple Cargo dependencies installed such as:

```sh
{▸} ~ cargo install --list
docpars v0.2.0:
    docpars
git-delta v0.6.0:
    delta
```

The previous command was passing out multiple lines:

```sh
{▸} ~ cargo install --list | grep -E '^[a-z0-9_-]+ v[0-9.]+:$' | cut -f1 -d' '
docpars
git-delta
```

Because of these lines were being received by the very same `cargo install` command, it was failing:

```sh
{▸} ~ cargo install "$(cargo install --list | grep -E '^[a-z0-9_-]+ v[0-9.]+:$' | cut -f1 -d' ')"
    Updating crates.io index
error: could not find `docpars
git-delta` in registry `https://github.com/rust-lang/crates.io-index` with version `*`
```

Now, it executes the `cargo install` multiple times, but at least do not produce crashes 😅

```sh
{▸} ~ cargo install --list | grep -E '^[a-z0-9_-]+ v[0-9.]+:$' | cut -f1 -d' ' | xargs -n1 cargo install
    Updating crates.io index
     Ignored package `docpars v0.2.0` is already installed, use --force to override
    Updating crates.io index
     Ignored package `git-delta v0.6.0` is already installed, use --force to override
```
Having pip3 installed does not imply having defined any dependencies for python. This change avoids crashing while running the `up` command. We were crashing because of the combination of `set -euo pipefail` with an empty input for the `grep -v '^\-e'` 🤟
Added script 'dot symlinks update'
* Fix errors with symlinks update script when files are symbolic links
* Fix non alphanumeric names of files
…ates can apply its own symlinks without adding files in symlinks subfolder
…so use it without copying files to the init-scripts folder

Added a CHANGELOG
* When you have problems of file permissions of autocompletions or any zsh file
  you can solve those errors by executing this subcommand.
Merged official dotly master branch in this branch.
@gtrabanco gtrabanco force-pushed the feature/backup_dotfiles branch 2 times, most recently from e0d7536 to 62e8e0b Compare July 12, 2021 18:28
@gtrabanco gtrabanco merged commit 4277df7 into master Jul 12, 2021
@gtrabanco gtrabanco deleted the feature/backup_dotfiles branch July 12, 2021 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants