28 lines
770 B
Markdown
28 lines
770 B
Markdown
# Scripts for Generic Linux Shell Env.
|
|
|
|
**PUBLIC REPOSITORY**
|
|
|
|
Just some everyday scripts for all my Linux shells.
|
|
|
|
|
|
## Installation
|
|
|
|
To `/usr/local/shared-scripts`: (recommended)
|
|
```bash
|
|
git clone https://githive.duckdns.org/shared/scripts ~/shared-scripts && \
|
|
sudo mv ~/shared-scripts /usr/local/ && \
|
|
echo -e "\n# Shared Scripts:\n. /usr/local/shared-scripts/startup.sh \"/usr/local/shared-scripts\"" >> ~/.bashrc
|
|
```
|
|
|
|
Auto-update via Cron job:
|
|
```
|
|
0 6 * * * root cd /usr/local/shared-scripts && /usr/bin/git pull origin main > /dev/null 2>&1
|
|
```
|
|
|
|
|
|
To `$HOME/shared-scripts`:
|
|
```bash
|
|
git clone https://githive.duckdns.org/shared/scripts ~/shared-scripts && \
|
|
echo -e "\n# Shared Scripts\n. \$HOME/shared-scripts/startup.sh \"$HOME/shared-scripts\"" >> ~/.bashrc
|
|
```
|