Skip to content

Shell scripts config, examples and a collection of the ones most commonly used

Notifications You must be signed in to change notification settings

Lnola/shell_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

TBA

Config

~/.zshrc

Open the file with the following

$ cd ~
$ vim .zshrc

Donwload the required plugins and P10K link. Copy the config/.zshrc and config/.p10k.zsh files.

~/bin

Example file structure (all /group1 files will have the g1_ prefix)

bin
├── group1
│   ├── script1.sh
│   └── script2.sh
├── group2
│   └── script3.sh
└── group3
    ├── script4.sh
    └── script5.sh

Example usage

The commands are global, meaning you can use them from any folder on the system (based on the user since they are stored in ~/bin)

$ cd ~
$ g1_script1
$ g1_script2
$ script3
$ script4
$ script5

$ cd Documents
$ g1_script1
$ g1_script2
$ script3
$ script4
$ script5

To add a new script...

  1. Create a test script and place it inside the ~/bin/* folder
  2. If it is a new folder add it to the list in the ~/.zshrc (described in detail above)
  3. Run the following command to configure permissions for the file
$ chmod +x ~/bin/${folder}/${filename}
  1. Run the following command to apply the changes
$ source ~/.zshrc
  1. Run the command from anywhere!

https://github.com/josean-dev/dev-environment-files https://www.josean.com/posts/terminal-setup

REMINDER: if ever rebuilding ssh accessed environments, make sure to remove local known_hosts and have them applied automatically again

TODO: Update documentation according to the new changes

TODO: Fix folder structure before laptop switch

TO use the signature add the missing signatures folder

About

Shell scripts config, examples and a collection of the ones most commonly used

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages