https://github.com/aleksanaa/bash-theme
my bash prompt theme
https://github.com/aleksanaa/bash-theme
bash bash-prompt gitstatus
Last synced: 5 months ago
JSON representation
my bash prompt theme
- Host: GitHub
- URL: https://github.com/aleksanaa/bash-theme
- Owner: Aleksanaa
- License: mit
- Created: 2023-02-13T21:37:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T06:05:26.000Z (over 1 year ago)
- Last Synced: 2025-02-11T02:34:08.901Z (about 1 year ago)
- Topics: bash, bash-prompt, gitstatus
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aleksana's bash theme

A simple bash theme tailored for my daily use. This theme includes:
- [Nord palette](https://www.nordtheme.com/) (requires truecolor support)
- [gitstatus](https://github.com/romkatv/gitstatus) prompt
- Nix shell detection
- Path shrinking like powerlevel10k
- Various icons
## Make icons display correctly
Install a font with these glyphs supported (paste theme into your terminal to test if works!):
```
-> NixOS
-> Clock
-> Home
❯ -> Right arrow
-> Git
↑ -> Up arrow
↓ -> Down arrow
✓ -> Tick
✎ -> Pencil
-> Warning
-> Folder
```
You probably want to install [nerd fonts](https://www.nerdfonts.com/). After that, make sure it's in fontconfig list (`fc-list`) or set as the default terminal font.
## Use gitstatus
Gitstatus is optional. If you are using a FHS compliant distro, just install it. Otherwise, set
```
GITSTATUS_PLUGIN_PATH=/path/to/your/gitstatus.plugin.sh
```
If you are using Homemanager, you can set something like
```nix
programs.bash.bashrcExtra =
let
aleksanaPS1 = pkgs.fetchFromGitHub {
owner = "Aleksanaa";
repo = "bash-theme";
rev = "2d0931cd8dc7f61d769097e8c4674ce8b757ef2a";
hash = "sha256-5fjMtcn/1DYQT3YFEsbCh6b4SNlc2yEyl74Xm+x6D7o=";
};
in
''
export GITSTATUS_PLUGIN_PATH=${pkgs.gitstatus}/share/gitstatus
source ${aleksanaPS1}/aleksana
'';
```