Add a bit of flavour to your prompt! My personal Zsh prompt theme, influenced heavily by denysdovhan's Spaceship theme.
In the screenshot above I'm using Solarized colours for iTerm2, along with the Inconsolata font.
$ZSH_CUSTOM/themes
ZSH_THEME="punctual"
in your ~/.zshrc
Include the following line to ~/.zshrc
as part of your antigen setup (after any configuration settings).
antigen theme dannynimmo/punctual-zsh-theme punctual
By setting variables before loading the theme, you can customise the output format of Punctual.
Set any of the following variables to "false"
to hide the output.
PUNCTUAL_SHOW_BLANK_LINE="false"; PUNCTUAL_SHOW_TIMESTAMP="false"; PUNCTUAL_SHOW_USER="false"; PUNCTUAL_SHOW_HOSTNAME="false"; PUNCTUAL_SHOW_CURRENT_DIR="false"; PUNCTUAL_SHOW_GIT="false";
Set any of the following variables to one of the 8 ANSI colour names.
PUNCTUAL_TIMESTAMP_COLOUR="red"; PUNCTUAL_USER_COLOUR="green"; PUNCTUAL_ROOT_USER_COLOUR="yellow"; PUNCTUAL_HOSTNAME_COLOUR="blue"; PUNCTUAL_CURRENT_DIR_COLOUR="magenta"; PUNCTUAL_GIT_COLOUR="cyan";
Possible values are:
black
red
green
yellow
blue
magenta
cyan
white
Set any of the following variables to "true"
to use the terminal's bold font.
PUNCTUAL_TIMESTAMP_BOLD="true"; PUNCTUAL_USER_BOLD="true"; PUNCTUAL_ROOT_USER_BOLD="true"; PUNCTUAL_HOSTNAME_BOLD="true"; PUNCTUAL_CURRENT_DIR_BOLD="true"; PUNCTUAL_GIT_BOLD="true";
Set the below variable to customise the timestamp format. See man strftime
for format options.
PUNCTUAL_TIMESTAMP_FORMAT="%l:%M%P";
Set the below variable to your favourite prompt symbol (or emoji 😅).
If you already have your ZSH_THEME_GIT_PROMPT_*
variables set, Punctual will respect those. Alternatively, set the following variables to customise the Git status symbols.
PUNCTUAL_GIT_SYMBOL_UNTRACKED="?"; PUNCTUAL_GIT_SYMBOL_ADDED="+"; PUNCTUAL_GIT_SYMBOL_MODIFIED="!"; PUNCTUAL_GIT_SYMBOL_RENAMED="!"; PUNCTUAL_GIT_SYMBOL_DELETED="!"; PUNCTUAL_GIT_SYMBOL_STASHED="*"; PUNCTUAL_GIT_SYMBOL_UNMERGED="M"; PUNCTUAL_GIT_SYMBOL_AHEAD="↑"; PUNCTUAL_GIT_SYMBOL_BEHIND="↓"; PUNCTUAL_GIT_SYMBOL_DIVERGED="~";
The Python environment being used (conda or virtualenvironment) will be added if the following flag is set to true (false by default) in your .zshrc
:
PUNCTUAL_SHOW_PYTHON_ENVIRONMENT=true
For conda, run the following command to disable the prompt that appears at the start of the line by default:
conda config --set changeps1 False ```zsh And similarly for python virtual environments you can add (either of) the following commands to your .zshrc to disable the prompt: ```zsh export VIRTUAL_ENV_DISABLE_PROMPT=1; export PYENV_VIRTUALENV_DISABLE_PROMPT=1;
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4