mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32:53 -05:00
Merge branch 'main' of https://github.com/G2-Games/welcome-sh
This commit is contained in:
commit
99cd245e9c
1 changed files with 27 additions and 8 deletions
35
README.md
35
README.md
|
@ -1,15 +1,14 @@
|
||||||
# welcome.sh
|
# welcome.sh
|
||||||

|

|
||||||
### A nice welcome script for Bash
|
### A nice welcome script for Bash and Zsh
|
||||||
This is a nice little script for your `.bashrc` that greets you on every launch, with some helpful (and customizable!) information.
|
This is a nice little script for your `.bashrc` or `.zshrc` that greets you on every launch, with some helpful (and customizable!) information.
|
||||||
|
|
||||||
My goal with this script is to keep it simple, just a single line that gives useful information when you start the terminal.
|
My goal with this script is to keep it simple, just a single line that gives useful information when you start a terminal session.
|
||||||
|
|
||||||
#### Features:
|
#### Features:
|
||||||
- Relatively fast
|
- Relatively fast
|
||||||
- <span title="Please let me know of other things to support!">Works across many distros (update checking support)</span>
|
- <span title="Please let me know of other things to support!">Works across many distros (update checking support)</span>
|
||||||
- Clean and simple
|
- Clean and simple
|
||||||
- Written entirely in Bash
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
### Installing:
|
### Installing:
|
||||||
|
@ -17,17 +16,23 @@ My goal with this script is to keep it simple, just a single line that gives use
|
||||||
```
|
```
|
||||||
bash -c "$(curl -s https://raw.githubusercontent.com/G2-Games/welcome.sh/main/install.sh)"
|
bash -c "$(curl -s https://raw.githubusercontent.com/G2-Games/welcome.sh/main/install.sh)"
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
zsh -c "$(curl -s https://raw.githubusercontent.com/G2-Games/welcome.sh/main/install.sh)"
|
||||||
|
```
|
||||||
#### Or wget
|
#### Or wget
|
||||||
```
|
```
|
||||||
bash -c "$(wget -q https://raw.githubusercontent.com/G2-Games/welcome.sh/main/install.sh -O -)"
|
bash -c "$(wget -q https://raw.githubusercontent.com/G2-Games/welcome.sh/main/install.sh -O -)"
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
zsh -c "$(wget -q https://raw.githubusercontent.com/G2-Games/welcome.sh/main/install.sh -O -)"
|
||||||
|
```
|
||||||
|
|
||||||
It installs to `~/.welcome/welcome.sh`, and adds a line to the bottom of `~/.bashrc`
|
It installs to `~/.welcome/welcome.sh`, and adds a line to the bottom of `~/.bashrc` or `~/.zshrc`
|
||||||
|
|
||||||
Run again to uninstall.
|
Run again to uninstall. Uninstalling will remove it from both Bash and Zsh.
|
||||||
|
|
||||||
#### Manual Installation
|
#### Manual Installation
|
||||||
To use it, download `welcome.sh` and place it in your home directory. Then add `/home/$USER/welcome.sh` to your `.bashrc`
|
To use it, download `welcome.sh` and place it in your home directory. Then add `/home/$USER/welcome.sh` to your `.bashrc`.
|
||||||
|
|
||||||
### Updating:
|
### Updating:
|
||||||
WIP
|
WIP
|
||||||
|
@ -38,8 +43,22 @@ Currently you can update by uninstalling and reinstalling, but this wipes all se
|
||||||
### Configs:
|
### Configs:
|
||||||
To configure settings, open `welcome.sh` in your text editor of choice and go to the bottom. There, you'll find a few settings:
|
To configure settings, open `welcome.sh` in your text editor of choice and go to the bottom. There, you'll find a few settings:
|
||||||
|
|
||||||

|
```bash
|
||||||
|
#=========SETUP========#
|
||||||
|
# Select which parts you want active by commenting them out
|
||||||
|
# For example, on a desktop, disabling the battery message is a good idea
|
||||||
|
# You can also re order them to change how they display!
|
||||||
|
|
||||||
|
flatpakupd="off" # Check for flatpak updates, this slows startup down A LOT
|
||||||
|
rechargenotif="off" # Notify that you should recharge if below 15%
|
||||||
|
|
||||||
|
welcome
|
||||||
|
greeting
|
||||||
|
clock
|
||||||
|
battery
|
||||||
|
updates #< This makes startup slower
|
||||||
|
echo # Properly line break at the end
|
||||||
|
```
|
||||||
|
|
||||||
Here, you can re-arrange the modules, and turn off and on flatpak and recharge notifications. I recommend leaving flatpak off as it makes startup incredibly slow.
|
Here, you can re-arrange the modules, and turn off and on flatpak and recharge notifications. I recommend leaving flatpak off as it makes startup incredibly slow.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue