Skip to content

.sh that creates an .sh and gives it execute permission, for convenience

License

Notifications You must be signed in to change notification settings

cinardoruk/script_maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

script_maker

Creates a bash script and gives it execute permission.

Usage

Usage: newScript.sh [-l | -g] <script_name>

Options: -l : create script_name.sh in current working dir (local script) -g : create script_name.sh in a pre-determined dir (global script). The dir should be included in $PATH

Arguments: <script_name> Name of the file to be created. Don't include ".sh". Scripts will be created without extensions in the filenames, so that they can be called by just typing their names.

Notes: To use -g, edit the variable dest at the beginning of the script to choose a directory and add it to your $PATH. This is usually done by adding this line

export PATH="$PATH:/your/directory/path"

to a config file your shell sources when you start it.

About

.sh that creates an .sh and gives it execute permission, for convenience

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages