Skip to content

Easy installation of shell scripts and aliases on every unix machine.

Notifications You must be signed in to change notification settings

spargonaut/.custom_commands

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.custom_commands

This project is where I keep some of my custom commands. They're shortcuts for many of the bash command line commands that I use frequently.

Usage

It is recommended that you check out the code with the following command: git clone https://github.com/the-lazy-devs/custom_commands.git ~/.custom_commands

The project adds aliases to be sourced and updates the path in a file(s) loaded by your shell. By default, the ~/.bash_profile and ~/.bashrc are updated.

If you're using bash and you would like this file updated, run ./create_custom_commands.sh. If you're using zsh, you should run ./create_custom_commands.sh -p ~/.zshrc -r ~/.zshrc.

For help, run ./create_custom_commands.sh -h

Script will ensure that no changes are made to files unless required. execution output

Removal

The following are the instructions for bash (default program execution). If you installed the commands and aliases into different files, update the commands accordingly.

  1. Remove the ~/.bin directory (rm -rf ~/.bin). WARNING You may have content other than what this script installed in this directory
  2. Find aliases that were added to your profile. Assuming you installed your aliases into ~/.bash_profile, run grep ".custom_commands/aliases" ~/.bash_profile
  3. Remove content from #2 from profile using your favourite editor
  4. Remove the PATH export from the same profile file
  5. Remove the PATH export from your shell startup file (~/.bashrc)

Note:

  • Shortcuts are sym-linked as shell scripts in ~/.bin
  • Aliases are sourced in your profile file

About

Easy installation of shell scripts and aliases on every unix machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%