GithubHelp home page GithubHelp logo

bashutils's Introduction

Bash Utilities for Different Shells

This repository contains utility scripts for various shells, including bash, PowerShell, and cmd.

Important notes

  • This repository must be placed in the home directory

Repository Structure

  • /bash: Contains utility scripts and configuration files for the bash shell.
  • /powershell: Contains utility scripts for the PowerShell shell.
  • /cmd: Contains utility scripts for the cmd shell.

Bash Utilities

The /bash directory includes the following files:

  • bash_aliases: Contains the definition of the paths, sources the aliases and functions and a function to install the configuration.
  • bash_aliases: Contains custom aliases for the bash shell.
  • bash_functions: Contains custom functions for the bash shell.
  • git_utils: A script to help with git commits.
  • vim/.vimrc: The configuration file for vim. Copy it in your home folder to enable the configuration.

Installation

To install the bash utilities, follow these steps:

  1. Open the terminal.

  2. Clone the repository: git clone https://github.com/catonzio/bashutils

  3. Navigate to the root folder of this repository: cd bashutils

  4. Source the main file using the following command:

    source bash/bashmain.sh
    
  5. Install the configuration with the command

    install-bashutils
    

Note that the installing process writes the sourcing of the main file into the ~/.bashrc file. From now on, you can use the alias source-all to source the .bashrc, .bash_aliases and .bash_functions files.

This will add the necessary configurations and aliases to your bash shell.

PowerShell and cmd Utilities

The /powershell and /cmd directories contain utility scripts specific to their respective shells. Please refer to the instructions provided within those directories for installing and using those utilities.

Installation

To install the git utility, follow these steps:

  1. Open the terminal.

  2. Open the $PROFILE file with your favorite editor (e.g. notepad) with the following command:

    notepad $PROFILE
    
  3. Copy the content of powershell/git_utils.ps1 inside the opened editor.

  4. Save, close and restart the terminal.

  5. Type git-utils and use the function.

bashutils's People

Contributors

catonzio avatar

Watchers

 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.