.
This commit is contained in:
114
README.md
114
README.md
@@ -11,6 +11,70 @@ Elegant, portable, and easy-to-install Bash prompt with:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 🚀 Install (step by step)
|
||||||
|
|
||||||
|
### 🐧 Linux / WSL (global, all users)
|
||||||
|
|
||||||
|
1) Clone the repo:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone <repo-url>
|
||||||
|
```
|
||||||
|
|
||||||
|
2) Enter the folder:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd Bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
3) Run the global installer (auto-installs deps + prompts for punchline):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo bash dotfiles/install/install-linux-global.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
4) Open a new shell to see the prompt and banner.
|
||||||
|
|
||||||
|
### 🍏 macOS (per-user)
|
||||||
|
|
||||||
|
1) Clone the repo:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone <repo-url>
|
||||||
|
```
|
||||||
|
|
||||||
|
2) Enter the folder:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd Bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
3) Run the user installer:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash dotfiles/install/install-macos-user.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
4) Reload your shell (or open a new terminal):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
source ~/.bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
### 🖼️ Nerd Fonts (optional but recommended)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash dotfiles/install/install-nerdfont.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
After install:
|
||||||
|
|
||||||
|
- Open your terminal settings
|
||||||
|
- Set font to JetBrainsMono Nerd Font (or any Nerd Font)
|
||||||
|
- Terminal must use a Nerd Font for glyphs like ``, ``, `` to render correctly
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## 🧠 Features
|
## 🧠 Features
|
||||||
|
|
||||||
- **Clean, modern powerline-style prompt**
|
- **Clean, modern powerline-style prompt**
|
||||||
@@ -59,56 +123,6 @@ Install-scriptet spør etter punchline og lagrer den i filen. Du kan også sette
|
|||||||
echo "Din punchline" | sudo tee /etc/ps1-punchline >/dev/null
|
echo "Din punchline" | sudo tee /etc/ps1-punchline >/dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 Installation
|
|
||||||
|
|
||||||
### 🐧 Linux / WSL (global, all users)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo bash install/install-linux-global.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
This:
|
|
||||||
|
|
||||||
- Installs the prompt module to `/etc/profile.d/ps1.sh`
|
|
||||||
- Sources it in `/etc/bash.bashrc` so all users get the prompt
|
|
||||||
- Installs `landscape-common`, `figlet`, and `lolcat` if missing
|
|
||||||
- Prompts for the global punchline used by the banner
|
|
||||||
- After install, open a new shell to see the prompt
|
|
||||||
|
|
||||||
### 🍏 macOS (per-user)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
bash install/install-macos-user.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
This:
|
|
||||||
|
|
||||||
- Copies `ps1/ps1.sh` to `~/.config/ps1/ps1.sh`
|
|
||||||
- Adds a source block in `~/.bashrc` and `~/.bash_profile`
|
|
||||||
- Open a new terminal or reload your shell:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
source ~/.bashrc
|
|
||||||
```
|
|
||||||
|
|
||||||
### 🖼️ Nerd Fonts (optional but recommended)
|
|
||||||
|
|
||||||
Nerd Fonts provide the best display for glyphs (powerline symbols):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
bash install/install-nerdfont.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
After install:
|
|
||||||
|
|
||||||
- Open your terminal settings
|
|
||||||
- Set font to JetBrainsMono Nerd Font (or any Nerd Font)
|
|
||||||
- Terminal must use a Nerd Font for glyphs like ``, ``, `` to render correctly
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## ⚙️ Overrides (Optional)
|
## ⚙️ Overrides (Optional)
|
||||||
|
|
||||||
Sometimes autodetection doesn’t work (e.g., on macOS without fontconfig):
|
Sometimes autodetection doesn’t work (e.g., on macOS without fontconfig):
|
||||||
|
|||||||
Reference in New Issue
Block a user