Skip to content

cyborgcatboy/srap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Srap

the shell rc appender

Usage

srap [-a/--all] [-d/--dry-run] [-f/--file <filename>] [-h/--help] [-n/--no-color] [-v/--verbose] <line to append>

Options:

all      - change all POSIX-compliant shellrcs
dry-run  - don't write to any files
file     - append the line to this specific file 
help     - show the help message
no-color - don't use any ANSI escape sequences in the terminal
verbose  - print verbose output 

About

A nice little program to append a given line to the current shell's config file, and also to teach me rust :3

Tested with bash and zsh, should work on nsh, ksh, tcsh, ion, and fish shells as well as far as i know.

Includes a helper for the alias command, so you don't have to escape quotations, but that is good practise!

License

This program and all source code is licensed under the GNU GPLv3

See LICENSE.md for details.

asdkjfkajsdklfjasdlkfjlkaksdjflkajsdlkfj meow

mrow meow meow meow meow >w<