Skip to content

β€‹πŸ“β€‹ Do you use several commands in your terminal, one after the other? This tool allows you to combine multiple templated bash commands with the alias of your choice and many others.

License

Notifications You must be signed in to change notification settings

AmineZouitine/Cpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Cpad

Do you use several commands in your terminal, one after the other? This tool allows you to combine multiple templated bash commands with the alias of your choice and many others.

πŸ‘¨πŸ½β€πŸ’» Installation

Prebuilt binaries

Download the binary depending on your configuration here: https://github.com/AmineZouitine/Cpad/releases

Then you just need to enter this command in your terminal:

tar -xf <downloaded_archive> cpad && sudo mv cpad /usr/local/bin

😎 Pro tip (optional)

To be able to navigate with the directional arrows, do this :

Install rlwrap:

debian:
sudo apt install rlwrap

arch:
sudo pacman -S rlwrap

macOS:
brew install rlwrap

add in your ~/.bashrc :

alias cpad='rlwrap cpad'

and save your alias with :

source ~/.bashrc

⚑️ Quick start

Launch Cpad

To use Cpad, you must type in your terminal :

cpad

πŸŒ— Enable/Disable emojis

Emoji are great, but can cause display problems on some configurations.

To enable/disable cpad take positional arguments (you only need to type it once, your preference will be saved).

πŸŒ• Enable

cpad 1 

πŸŒ‘ Disable

cpad 0

Interesting examples of usage

In these examples, you will discover the following elements: -cb [cb] [?]. They are explained in the features section, but quickly :

-cb - Allows you to create a combo command.

[cb] - Is the separator between the commands.

[?] - Is a template allowing the user to give a custom argument.

Fast push on Github

Add files to a commit, set a commit message, see the changes in your repository. Push your changes to the branch of your choice.

  -cb git add [?] [cb] git status [cb] git commit -m "[?]" [cb] git push origin [?] [cb] git checkout main

Here is how to use the command we just created:

newgif-2022-04-29_18 22 00

Fast project C++ Setup

Create your project setup quickly with this kind of command.

  -cb mkdir [?] [cb] cd [?] [cb] touch Makefile [cb] mkdir test [cb] mkdir -p src/header [cb] touch src/main.cc

Here is how to use the command we just created:

newproject-2022-04-29_18 33 07

πŸ“‹ Features

image

πŸ‘πŸΌ Share your configuration with your friends

All your configuration is saved in the .cpad file in your home folder (Don't delete it or your configuration will be too).

What you should do:

cp ~/.cpad ~/my_cpad_configuration

What your friends should do:

mv my_cpad_configuration ~/.cpad

πŸ’ž Acknowledgement

Thanks to Paul-annet Renoux, Oceane Valat and Volham22 for their great contributions on this project.

And to Adil Zouitine, Raphael Sourty and Mehdi Zouitine for their precious advice.

About

β€‹πŸ“β€‹ Do you use several commands in your terminal, one after the other? This tool allows you to combine multiple templated bash commands with the alias of your choice and many others.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •