Skip to content

Instantly share code, notes, and snippets.

View davidpfarrell's full-sized avatar

David Farrell davidpfarrell

View GitHub Profile
@davidpfarrell
davidpfarrell / bashit-backup.sh
Created November 5, 2019 18:44
Export Bash-It Components as a Series of 'Enable' Commands
#!/usr/bin/env bash
# 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.
source "${BASH_IT:?"variable not defined"}"/bash_it.sh
components=( alias plugin completion )