An open API service indexing awesome lists of open source software.

https://github.com/xmbgit/scripts

Scripts I use on my Ubuntu Server. Add to your path for highest utility.
https://github.com/xmbgit/scripts

bash-script linux scripts shell shell-script ubuntu ubuntu-server

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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:

```bash
# 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`
```bash
# 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
```