Skip to content

someoneinthe/shell-aliases

Repository files navigation

shell-aliases

node files to be run in shell to help you for some commands

Quality Gate Status Security Rating Reliability Rating Vulnerabilities

Lines of Code

Bugs Code Smells

Prerequisites

For these scripts to work, you need to have the following installed on your machine:

  • node: lts or most recent
  • yarn (or npm should work too): any version
  • git: 2.23.0 or most recent

Installation

You will have to install dependencies in the root directory of this repository, then compile the files.

yarn install --production

A 'postinstall' script is automatically run to compile the typescript files. You can also build manually with:

yarn build

Usage

To use these scripts, you have to put aliases in your .bashrc or .zshrc file. It's not mandatory, but recommended to avoid to write the full command path each time.

Add all shortcuts

SHELL_ALIAS_DIR=$PATH_TO_THIS_REPOSITORY
source $SHELL_ALIAS_DIR/.source.sh

Add only selected shortcuts

SHELL_ALIAS_DIR=$PATH_TO_THIS_REPOSITORY
alias myAliasName="node $SHELL_ALIAS_DIR/dist/my-file-to-run.js"

Execute without alias

node $PATH_TO_THIS_REPOSITORY/dist/my-file-to-run.js

About

node files to create shell aliases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published