-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5c4ef7
commit 17d5acc
Showing
3 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,59 @@ | ||
README | ||
# Lipstick on a Pig 💄🐽 | ||
|
||
![motd screenshot](screenshot.png) | ||
|
||
Simple MOTD using golang and [Lipgloss](https://github.com/charmbracelet/lipgloss) by [Charm©](https://charm.sh/) | ||
|
||
I use it to get basic information when I log in to my many containers and VMs. Should work on any modern version of Mac, Debian and probably other linux distros. Looks pretty. | ||
|
||
## Install | ||
|
||
### Script | ||
|
||
### Manual | ||
|
||
Download the binary and move it to the proper place | ||
```bash | ||
wget https://github.com/Porco-Rosso/Lipstick-on-a-Pig/releases/latest/download/lipgloss-on-a-pig_darwin_amd64 | ||
mkdir /usr/local/bin/ | ||
mv lipgloss-on-a-pig_darwin_amd64 /usr/local/bin/lipgloss-on-a-pig | ||
``` | ||
|
||
make executable | ||
```bash | ||
chmod +x /usr/local/bin/lipgloss-on-a-pig | ||
``` | ||
|
||
remove old MOTD. Warning this will permenantly delete your old MOTD! | ||
```bash | ||
echo -n >/etc/update-motd.d/10-uname | ||
echo -n > /etc/motd | ||
``` | ||
|
||
Add to .bashrc so it displays at login | ||
```bash | ||
LINE='/usr/local/bin/lipgloss-on-a-pig"' | ||
FILE='~/.bashrc' | ||
grep -qF -- "$LINE" "$FILE" || echo "$LINE" >> "$FILE" | ||
``` | ||
|
||
test it out | ||
```bash | ||
/usr/local/bin/lipgloss-on-a-pig | ||
``` | ||
|
||
## Build | ||
|
||
`apt install golang -y` or follow the installation instructions on [go.dev](https://go.dev/doc/install) | ||
|
||
`git clone zzz` | ||
|
||
`cd Lipstick-on-a-Pig` | ||
|
||
Make your changes to `lipstick-on-a-pig.go` | ||
|
||
`CGO_ENABLED=0 go build` | ||
|
||
You should end up with a binary named lipstick-on-a-pig for your OS and arch | ||
|
||
|
||
install | ||
go install github.com/charmbracelet/lipgloss@latest | ||
go get golang.org/x/term |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.