Skip to content

sarrost/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

My Scripts

Some shell scripts I've written/gathered which I use on my linux setup on a daily basis. I use zsh as my main shell, 99% of the scripts will work on bash though. I'm not anal about remaining POSIX compliant. If you absolutely must repurpose any of the scripts for a POSIX shell I assume you are capable of doing so.

IMPORTANT: Many of the scripts rely on variables I set in my ~/.profile contained in my dotfiles. Some scripts use external programs, I do mention (as much as I can recall) which programs are required within the scripts.

Table of Content

Installation

Simply copy-pasta to your own scripts dir, or clone this repo and add them to your $PATH. For the latter method do:

cd ~
git clone https://github.com/sarrost/scripts

Add the following line to your ~/.profile. It will allow the scripts to be executed from within any working dir:

...
export PATH="$PATH:$(du -L "$HOME/scripts/scripts" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
...

To test if everything is working correctly open up a new terminal and do:

cd ~
testpath

If the above doesn't work please make sure you properly set the $PATH variable in your ~/.profile. If the scripts refuse to execute do, give them all execute permissions.

chmod +x -R ~/scripts/scripts

List of Scripts

Many of the scripts are designed to be used with other programs, such as vim, vifm, zsh, fzf, tmux, etc. See my dotfiles for how I integrate the scripts.

Why not use .local/bin?

I wanted a seperate repo for my scripts, it seemed redundant to have sync the scripts to another dir.

Contact

About

Some scripts I use on a daily basis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages