Skip to content

astralarya/patterns-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

patterns-shell

patterns-shell - Tempate patterns for shell scripts

Installation

Clone the repository via git, then run the included update.sh:

git clone https://github.com/autochthe/patterns-shell.git && cd patterns-shell && ./update.sh

Future updates can be fetched by running the update.sh script.

Patterns

Scripts

  • autoscreen - automatically start GNU screen without inception
  • clip - simplified access to xclip
  • history - persistent shell history with advanced search
  • prompt - pretty programmable prompt
  • seek - search for files and folders
  • to - bookmark directory locations with tab completion
  • trace - log and monitor commands
  • untar - untar and unzip archives

For detailed descriptions of these scripts,
see scripts/README.md

Templates

You can use templates to generate code.

  • deploy
    • template-deploy-client - Client side deploy methods
    • template-deploy-server - Server side deploy methods
  • pgdb
    • Generate functions to access a PosgreSQL database
  • pgdb-backup
    • Generate functions to backup and restore a PostgreSQL database
  • remote
    • Generate functions to connect to a server via SSH, setup public/private key authorization, start a SOCKS proxy, and push/pull files via SCP.
  • sourcedir
    • template-sourcedir - Generate script to source all files in a directory

For detailed descriptions of these functions and the code they generate,
see templates/README.md

License

patterns-shell

Copyright (C) 2013 Mara Kim

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Template patterns for shell scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published