Pretty, minimal and fast prompt for various shells
Project description
Pure
Pretty, minimal and fast prompt for various shell.
Original design by sindresorhus/pure.
Goal
Support various shells as possible with only one codebase.
❤️ I'm familiar with some of them (bash
, zsh
, fish
) but would love to have help support the other (elvish
, ksh
, powershell
, tcsh
).
Features
Feature | bash |
elvish |
fish |
ksh |
powershell |
tcsh |
zsh |
---|---|---|---|---|---|---|---|
Excellent prompt character ❯ |
✔ | ✔ | ✔ | ||||
Display current directory tail | ✔ | ✔ | ✔ | ||||
Display git branch name |
|||||||
Display * when git repository is dirty |
|||||||
Display ⇡ when branch is ahead(commits to push) |
|||||||
Display ⇣ when branch is being(commits to pull) |
|||||||
Change ❯ to red when previous command has failed |
✔ | ✔ | ✔ | ||||
Update terminal title with current folder and command |
|||||||
Display username and hostname when in an SSH session |
|||||||
Display duration when command run more that 5 seconds |
|||||||
Display Python virtualenv when activated |
✔ | ✔ | ✔ | ||||
Fine control over colors | |||||||
Right prompt control | |||||||
Display VI mode and custom symbol for non-insert mode |
Install
⚠️ Under heavy development, use at your own risk! 💀
git clone git@github.com:edouard-lopez/pure.git $HOME/.pure
Fish
cp $HOME/.pure/config/fish_prompt.fish $fish_config/functions/
echo 'set --global --export PURE_EXECUTABLE_PATH $HOME/.pure/' >> $fish_config/config.fish
exec fish
Zsh
cp $HOME/.pure/config/prompt.zsh $HOME/.zsh/
echo 'export PURE_EXECUTABLE_PATH=$HOME/.pure/' >> $HOME/.zshrc
echo 'source $HOME/.zsh/prompt.zsh' >> $HOME/.zshrc
exec zsh
Bash
mkdir ~/.bash/
cp $HOME/.pure/config/prompt.bash $HOME/.bash/
echo 'export PURE_EXECUTABLE_PATH=$HOME/.pure/' >> $HOME/.bashrc
echo 'source $HOME/.bash/prompt.bash' >> $HOME/.bashrc
exec bash
License
MIT © Édouard Lopez.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pure-1.3.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
pure-1.3.1-py3-none-any.whl
(5.7 kB
view hashes)