Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lissy93/minimal-terminal-prompt
📟 A clean PS1 bash prompt, showing user, host, pathname and git status
https://github.com/lissy93/minimal-terminal-prompt
bash ps1 shell theme zsh
Last synced: 1 day ago
JSON representation
📟 A clean PS1 bash prompt, showing user, host, pathname and git status
- Host: GitHub
- URL: https://github.com/lissy93/minimal-terminal-prompt
- Owner: Lissy93
- License: mit
- Created: 2017-11-30T17:46:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-17T23:02:23.000Z (10 months ago)
- Last Synced: 2024-04-20T18:49:45.677Z (7 months ago)
- Topics: bash, ps1, shell, theme, zsh
- Language: Shell
- Homepage:
- Size: 479 KB
- Stars: 46
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
📟 Minimal Terminal Prompt
A clean PS1 bash prompt, showing user, host, pathname and git status
### Bash Installation
Clone and cd into the repo, then copy the desired PS1 .sh file contents into your `~/.bashrc`.
Then just reload your bash profile (either restart your cmd, or run the source command)```bash
git clone https://github.com/Lissy93/minimal-terminal-prompt.gitcd minimal-terminal-prompt
cat minimal-terminal-prompt.sh >> ~/.bashrc
source ~/.bashrc
```Done 😎
_**Note, for Mac OS X:** Because by default OS X starts a login session first,
the file `~/.bash_profile` can be used in place of `~/.bashrc`. Read more about this on this
[GNU Documentation Article](https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html)._**References and Further Reading:** All the information you could ever want to know about customising your bash PS1 prompt
can be found on this detailed Linux Documentation and how-to guide, by Giles Orr:
[TLDP: Bash Prompt How-To](http://tldp.org/HOWTO/Bash-Prompt-HOWTO/)### ZSH Installation
To install this theme for use in [Oh-My-Zsh](https://github.com/robbyrussell/oh-my-zsh),
clone this repository into your OMZ `custom/themes` directory.```bash
$ git clone https://github.com/Lissy93/minimal-terminal-prompt.git ~/.oh-my-zsh/custom/themes
```You then need to select this theme in your ~/.zshrc:
```bash
ZSH_THEME="minimal-terminal-prompt"
```Done 😎
For more information, [see this guide about setting ZSH themes](https://github.com/robbyrussell/oh-my-zsh/wiki/Customization#overriding-and-adding-themes).
© Alicia Sykes 2017
Licensed under MIT