Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
/ dircmd Public archive

Automating repetitive tasks one directory at a time.

License

Notifications You must be signed in to change notification settings

richard-scott/dircmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dircmd logo

dircmd

dircmd can save you time when you need to repeat the same commands time and time again. For example, when programming in Python you may need to enable your Virtual Environment (virtualenv) each time you start writing or testing code. For example, you may repeatidly use these commands at the start of a session:

cd ~/my_next_great_application
source env/bin/activate

Great, you are now setup to start coding. What if you want to quickly do something else in another Python environment. For example, lets say you need to install a pip package in an old application codebase. You would need to do the following:

deactivate
cd ~/my_previous_great_application
source env/bin/activate
pip install <something>
deactivate
cd ~/my_next_great_application
source env/bin/activate

Now you can carry on where you left off, but what if you could reduce your typing down to just 42% of that. With dircmd helping you can reduce this to just 3 commands:

cd ~/my_previous_great_application
pip install <something>
cd ~/my_next_great_application

Installation

curl -L https://git.io/get_dircmd.sh | bash

Usage

After installation you will find a new ~/.dircmd directory with some example files.

Activation

You can activate the utility right now with the following command, or just log out and log back in again.

source /etc/profile.d/dircmd.sh

Once you activate the utility you will get a nice new welcome message each time you go to your $HOME directory. Edit ~/.dircmd/entry and ~/.dircmd/exit to your needs and everytime you go to $HOME they will be loaded.

You can create a .dircmd directory anywhere on your system and then add entry/exit files that will be used by any user to traverse that location.

About

Automating repetitive tasks one directory at a time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages