A lightweight shell prompt for bash
, zsh
, fish
and more.
- displays login information
- shell/user sign:
$
for bash%
for zsh§
for fish>
for sh / ksh / dash)
for csh/tcsh#
for root in any shell
- working directory with write permission color
- return code of previous failed command
- git branch and status:
⑂BRANCH
: ifBRANCH
is notmaster
↑
: local branch ahead origin↓
: local branch behind origin (aftergit fetch
)+
: uncommited changes…
: untracked files
- current time
- number of running background jobs, e.g
[1&]
The Easy Way: Simply run
wget -O - https://raw.githubusercontent.com/emareg/Promptheus/master/install.sh | sh
or
curl https://raw.githubusercontent.com/emareg/Promptheus/master/install.sh | sh
Manually:
git clone git@github.com:emareg/Promptheus.git
cp -r ./Promptheus/.promptheus "$HOME/"
echo 'source ~/.promptheus/rc.sh # Promptheus Theme' >> ~/.bashrc
echo 'source ~/.promptheus/rc.sh # Promptheus Theme' >> ~/.zshrc
echo 'source ~/.promptheus/rc.fish # Promptheus Theme' >> ~/.config/fish/config.fish
sed
, which should be available on all systems
Promptheus provides two default prompt styles that can be set by calling
ptSslim
for a functional single line prompt (default)ptSfull
for a fancy two line prompt
Promptheus defines a small set of handy aliases
..
,...
,....
tocd
upwardsff PATTERN
find file with PATTERNfif PATTERN
find all occurrences of PATTERN in filesextract ARCHIVE
to extract any archive FILE