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

Transferring bash-it config between computers #283

Closed
bsgreenb opened this issue Apr 15, 2014 · 8 comments
Closed

Transferring bash-it config between computers #283

bsgreenb opened this issue Apr 15, 2014 · 8 comments

Comments

@bsgreenb
Copy link

Is there a file that stores settings/what's enabled that I could transfer from one comp to the next to transfer over my bash-it config?

@JTarasovic
Copy link

No. The enabled plugins, aliases and completions are just symlinks from the available to the enabled directory.

It'd be an enhancement to be able to read from and write to file in install.sh.

@aaroncaito
Copy link

@bsgreenb I use a ~/etc.git to keep track of my stuff.
mkdir ~/etc && mv ~/.bash_profile ~/etc/bash_profile && ln -s ~/etc/bash_profile ~/.bash_profile && mv ~/.bash_it ~/etc/bash_it && ln -s ~/etc/bash_it ~/.bash_it
I move most my .dotfiles and other config type stuff in to ~/etc and symlink where it belongs. then I keep my etc backed up. I use boxen (osx specific sadly) to create those repos and symlinks for new systems to help keep everything in sync. there are probably more elegant solutions but this is what i'm doing now.

Be mindful that you dont commit private keys or other sensitive data. If you need passwords in scripts and such you can make a file out of vc to load your environment then use those env vars in your scripts.

@cornfeedhobo
Copy link
Member

@bsgreenb I copy the entire directory to my new computer, or restore from a back up. I'd say that if you want a settings export feature, a PR would be more than welcomed.

@nwinkler my guess is that this can be closed.

@davidpfarrell
Copy link
Contributor

I posted this somewhere else around here, but think sharing it here could be useful too:

bashit-backup.sh (gist)

# Exports Bash-it components as a series of 'enable' commands.
# The output can be saved to a file and sourced as needed to re-enable components.
# A 'disable all' statement is present for each component, but commented by default.

@nwinkler
Copy link
Member

nwinkler commented Mar 9, 2020

Thanks for posting your Gist here! I use a similar script that also produces an executable file with all the enable/disable statements. It can be found here: https://github.com/nwinkler/dotfiles/blob/master/home/bin/backup-bash-it

I'm wondering whether we want to either add this to the Wiki section, or add it as a function to Bash-it. Something like bash-it backup...

@nwinkler nwinkler closed this as completed Mar 9, 2020
@finn-matti
Copy link
Contributor

Why was this closed? It seems backup is not a recognized function of bash-it.

@davidpfarrell
Copy link
Contributor

Hey @finn-matti ,

I think this was closed since, at the time, the discussion resulted in some working solutions (for example, see the gist I link to a couple posts above)

However, there is also a current effort to bring some form of official support to bash-it:

So keep an eye on that PR !

@finn-matti
Copy link
Contributor

@davidpfarrell That looks great. Also thanks for the clarification. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants