Skip to content

Bash tools to help development into my linux environment

License

Notifications You must be signed in to change notification settings

proteusvi/devToolsBash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

devToolsBash

Bash tools to help development into my linux environment

goProject

It is a tool to go to my project directory in my workspace directory. It depends on CollectionLibrary. Tu use it, you have to create a bin directory in your account directory for exemple :

 $ mkdir ${HOME}/bin

Copy the CollectionLibrary and goProjet into the bin directory.

How to adapt your configuration

open goProject and replace the existing addIndexValue with your index values where

  • index : is your alias name to go to your project
  • value : the path of your project.

How to use it ?

To go to your project launch goProject as :

$ . ~/bin/goProject [<alias name>]

If you do not write the alias name, the script will ask you to choose from a list displayed.

CollectionLibrary

Is a colection library to get fonctionnalities to manage a simple collection of array indexes, values and positions. positions is not use actualy but it could be usefull in the future.

  • indexes contains index of the collection,
  • values contains value of the collection,
  • positions contains the numerci position of the index value of the collection.

Methodes or functions

  • getPosition return the free position of the collection.
  • addIndexValue with 2 parameters :
    • index : the alias of your project.
    • value : the path of your project. This methode set the collection with your list of aliases pathes for your projetcs.
  • getValueFromIndex with 1 parameter
    • index : the alias of your project. Return the path of your project found from the index passed by parameter.
  • getlistOfCollection, usefull to debug or just list your collection to see if indexes, values and positions contains the rights datas.
  • displayIndexes display the list of aliases configured. Used in goProject to list the alias possibilities if you dont set parameter after the command.
  • existIn function who return 0(true) or 1(false) if alias exist in the collection or not.

About

Bash tools to help development into my linux environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages