Giter Site home page Giter Site logo

bash-it's Introduction

Bash-it

This repo is forked from bash-it. This version includes my own changes to everything from custom aliases, scripts, .bashrc, and much more.

Installation

  1. Check out a clone of this repo to a location of your choice, such as git clone --depth=1 https://github.com/JayMody/bash-it.git ~/.bash_it
  2. Run ~/.bash_it/install.sh (it automatically backs up your ~/.bash_profile or ~/.bashrc, depending on your OS)
  3. Edit your modified config (~/.bash_profile or ~/.bashrc) file in order to customize Bash-it.
  4. Check out available aliases, completions, and plugins and enable the ones you want to use (see the next section for more details).

Install Options

The install script can take the following options:

  • --interactive: Asks the user which aliases, completions and plugins to enable.
  • --silent: Ask nothing and install using default settings.
  • --no-modify-config: Do not modify the existing config file (~/.bash_profile or ~/.bashrc).

When run without the --interactive switch, Bash-it only enables a sane default set of functionality to keep your shell clean and to avoid issues with missing dependencies. Feel free to enable the tools you want to use after the installation.

When you run without the --no-modify-config switch, the Bash-it installer automatically modifies/replaces your existing config file. Use the --no-modify-config switch to avoid unwanted modifications, e.g. if your Bash config file already contains the code that loads Bash-it.

NOTE: Keep in mind how Bash load its configuration files, .bash_profile for login shells (and in macOS in terminal emulators like Terminal.app or iTerm2) and .bashrc for interactive shells (default mode in most of the GNU/Linux terminal emulators), to ensure that Bash-it is loaded correctly. A good "practice" is sourcing .bashrc into .bash_profile to keep things working in all the scenarios. To achieve this, you can add this snippet in your .bash_profile:

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

Refer to the official Bash documentation to get more info.

Install using Docker

You can try Bash-it in an isolated environment without changing any local files via a Docker Container. (Bash Shell v4.4 with Bash-it, bats and bash-completion based on Alpine Linux).

docker pull ellerbrock/bash-it

Have a look at our bash-it-docker repository for further information.

Updating

To update Bash-it to the latest version, simply run:

bash-it update

that's all.

If you are using an older version of Bash-it, it's possible that some functionality has changed, or that the internal structure of how Bash-it organizes its functionality has been updated. For these cases, we provide a migrate command:

bash-it migrate

This command will automatically migrate the Bash-it structure to the latest version. The migrate command is run automatically if you run the update, enable or disable commands.

Help Screens

bash-it show aliases        # shows installed and available aliases
bash-it show completions    # shows installed and available completions
bash-it show plugins        # shows installed and available plugins
bash-it help aliases        # shows help for installed aliases
bash-it help completions    # shows help for installed completions
bash-it help plugins        # shows help for installed plugins

Custom Stuff

Progs

  • sublime
  • anaconda
  • git
  • google chrome

myscripts

txt: Opens file with chosen text editor nscript: Creates a new script in the myscripts folder hello_world: A test script

template

bash_profile.template.bash

  • connect to bashrc
  • alternate theme
  • bash-it default stuff

.bashrc

  • add myscripts to the path

custom.aliases

contians custom aliases

bash-it's People

Contributors

adawalli avatar arimourao avatar benbrunton avatar con-f-use avatar danflies avatar demula avatar desandro avatar dnoiz1 avatar edubxb avatar eedwards-sk avatar erichs avatar font avatar ipoval avatar jaymody avatar jfsiii avatar kigster avatar laniksj avatar lfelipe1501 avatar miketheman avatar mimoralea avatar muniftanjim avatar noqqe avatar nwinkler avatar revans avatar rjorgenson avatar ryankanno avatar tbhaxor avatar thedrow avatar tswicegood avatar yumingma avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.