Skip to content

Scripts I use on my Ubuntu Server. Add to your path for highest utility.

Notifications You must be signed in to change notification settings

mbrepos/scripts

Repository files navigation

Scripts

This repository consists of scripts I use on my Ubuntu Server. Achitecture independent and used to automate many administrative tasks.

Feel free to use them as you wish. Some are incredibly complex, more are incredibly simple and useful.

To add these to your path use:

# Add ~/scripts to PATH if it exists
if [ -d "$HOME/scripts" ]; then
    export PATH="$HOME/scripts:$PATH"
fi

The following only executes the encased commands if the shell is interactive. Otherwise, the .bashrc additions would interfere with non-interactive commands like scp and rsync

# If running interactively, execute the following commands 

if [ -n "$PS1" ]; then 
    echo -e "\e[31mRed Text\e[0m" 
    echo -e "NOTICE: VIEW SCRIPTS WITH lscripts \n\e[31mSCRIPTS AVAILABLE ARE:\e[0m $(lscripts)\n" 
    echo "Today is $(date)" 
    echo "Welcome Home Master $(whoami)" 
    echo "Executing Bash RC" 
fi

About

Scripts I use on my Ubuntu Server. Add to your path for highest utility.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages