Coder Social home page Coder Social logo

reobin / typewritten Goto Github PK

View Code? Open in Web Editor NEW
897.0 6.0 64.0 6.29 MB

A minimal, lightweight, informative zsh prompt theme

Home Page: https://typewritten.dev

License: MIT License

Shell 100.00%
zsh prompt theme minimal shell git terminal async hacktoberfest

typewritten's Introduction

typewritten

typewritten

A minimal zsh prompt


All contributors

typewritten zsh prompt demo

Terminal is iTerm2 — Font is JetBrains Mono — Terminal theme is Seoul256

See how to make your terminal look exactly like the demo here

Features

Quick start

npm install -g typewritten

That's it. The script will make the necessary symlinks to fpath and set the prompt in your .zshrc.

brew install typewritten

Then load typewritten in your .zshrc by using zsh prompinit:

autoload -U promptinit; promptinit
prompt typewritten

Manual

Clone the typewritten repository somewhere you can easily link. I recommend creating a .zsh directory at root.

mkdir -p "$HOME/.zsh"
git clone https://github.com/reobin/typewritten.git "$HOME/.zsh/typewritten"

Load typewritten in your .zshrc by using zsh prompinit:

fpath+=$HOME/.zsh/typewritten
autoload -U promptinit; promptinit
prompt typewritten

Note: if using oh-my-zsh, set ZSH_THEME="" in your .zshrc to disable oh-my-zsh themes.

Other ways to install

Many other ways to install typewritten are available in the docs

Customization

typewritten is customizable in many ways. To keep the readme file as lean as possible, the documentation was moved to https://typewritten.dev.

The documentation is separated into two parts:

Example of 3 customized typewritten prompts

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Robin Gagnon
Robin Gagnon

💻 🚧 📖
thbe
thbe

💻
Erik Reinertsen
Erik Reinertsen

💻 📖
Artem Zinnatullin :slowpoke:
Artem Zinnatullin :slowpoke:

💻 📖
Nizar
Nizar

💻
John Letey
John Letey

📖
Niranjan
Niranjan

💻
Nikhil
Nikhil

🤔
Tobias Deekens
Tobias Deekens

🤔
Caleb Cushing
Caleb Cushing

🤔
Konstantin Petrov
Konstantin Petrov

💻 📖
Krzysztof Tomasz Zembrowski
Krzysztof Tomasz Zembrowski

📖
Ivan Velickovic
Ivan Velickovic

📖
Jeremy Barisch-Rooney
Jeremy Barisch-Rooney

🤔
Gino
Gino

🐛
frdrk
frdrk

🐛 📓
Huy Ha
Huy Ha

🐛 📓
yanyan
yanyan

💻
Louis de Charsonville
Louis de Charsonville

🐛 💻
Jack Chapman
Jack Chapman

💻 🐛
GPSBach
GPSBach

💻 🤔
Will Lorey
Will Lorey

📖
Gabriel Ataide
Gabriel Ataide

🐛 💻
Scupake
Scupake

🤔 ⚠️
Crystal Adkins
Crystal Adkins

💻 🤔
J.B.C
J.B.C

🐛 💻
Jeeva K
Jeeva K

🐛 🤔
awakened
awakened

🤔
spamwax
spamwax

🤔
Austin Ray
Austin Ray

💻 🐛
Alan
Alan

🐛
Vedant Nandwana
Vedant Nandwana

📖
Kyle Dozier
Kyle Dozier

📖 🤔
Daniel Bayley
Daniel Bayley

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Supporters 🌞

Stargazers repo roster for @reobin/typewritten

Forkers repo roster for @reobin/typewritten

Credits

typewritten's People

Contributors

allcontributors[bot] avatar artem-zinnatullin avatar austin-ray avatar crepppy avatar crystaljewell avatar danielbayley avatar eleven4y avatar foruniverse avatar gpsbach avatar juancortelezzi avatar louisdecharson avatar ninja18 avatar nizarmah avatar pfandzelter avatar reobin avatar thbe avatar vedantnn71 avatar wwlorey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

typewritten's Issues

wiki: typo in installation for oh-my-zsh

Hey there,

seems there's a typo in the installation wiki for oh-my-zsh. Please consider changing:

ls -s "$ZSH_CUSTOM/themes/typewritten/async.zsh" "$ZSH_CUSTOM/themes/async"

to

ln -s "$ZSH_CUSTOM/themes/typewritten/async.zsh" "$ZSH_CUSTOM/themes/async"

24 bit colors

Is your feature request related to a problem? Please describe.
I use a color theme for emacs and tmux, this theme is Dracula. I would like to set typewritten colors that match this theme.

Describe the solution you'd like
This would be possible if I could set any 24 bit color code instead of only one of the ANSI colors.

Additional context
The image below shows the colors I use with tmux, I would like the typewritten prompt and current directory to also use colors directly from the Dracula theme, to match the rest of the colors.

Screenshot 2020-08-04 at 16 36 42

add a prefix for the righthand side

So this theme is basically exactly what I was looking for, however I do have one thing I'd like to configure, when I copy and paste code from my terminal, I'd like the code to be basically executable, or show what I executed.

> ls .         service-graph -> feature/RS2-1003 $

so that last part isn't part of the output or what was executed, what I'd like is for that to read as

> ls .         # service-graph -> feature/RS2-1003 $

so it reads and acts as a comment if someone copy's and pastes

Align right prompt

Is your feature request related to a problem? Please describe.

When adding/removing files in a git dir, the right prompt varies:

Screenshot 2020-06-17 at 09 49 11

It ends up looking unorganised and a bit chaotic in my opinion.

Describe the solution you'd like

Align the -> characters in all the right prompts if that's possible 🤔

Describe alternatives you've considered

N/A

Additional context

N/A

Cursor changes after open vim

Description

When I open my Terminal the cursor is a underline, when I now open vim and quit it the cursor is a block

Information

  • OS: Artix
  • Terminal: Termite
  • Shell: Zsh

.zshrc
Termite Config

Screenshots

Before

Screenshot_2021-04-13_09-51-38

After

Screenshot_2021-04-13_09-46-46

Usage with Antibody

Is your feature request related to a problem? Please describe.

I have a list of all my Zsh plugins (including typewritten):

# ~/.dotfiles/zsh/plugins.txt

zsh-users/zsh-autosuggestions branch:develop
zsh-users/zsh-syntax-highlighting
#mafredri/zsh-async
#sindresorhus/pure
reobin/typewritten

In my Zsh config, I have the following:

# ~/.zshrc

source <(antibody init)
antibody bundle < ~/.dotfiles/zsh/plugins.txt

source ~/.dotfiles/zsh/env.zsh
source ~/.dotfiles/zsh/alias.zsh

However, I get the following (an unstyled prompt):

Screenshot 2020-06-04 at 09 58 19

Describe the solution you'd like

I would like to be able to use typewritten with Antibody.

Describe alternatives you've considered

I guess I could switch my entire setup over to oh-my-zsh, but I don't want to do that just for a prompt theme.

Additional context

N/A

Can't set colors with environment variable

Describe the bug
Setting custom colors via environment variables TYPEWRITTEN_COLOR_MAPPINGS and TYPEWRITTEN_COLORS doesn't seem to work for me, either when setting them on the fly or putting them into ~/.zshrc.

Desktop (please complete the following information):

  • OS: Ubuntu Studio 20.04 (xfce)
  • xfce4-terminal

npm install does not write to .zshrc on Linux

Describe the bug
Following the npm installation, no changes are made to .zshrc.

To Reproduce

  1. Run npm install -g typewritten
  2. Check .zshrc

Expected behavior
Changes to .zshrc

Desktop (please complete the following information):

  • OS: Arch
  • Browser [qutebrowser]
  • Version [1.4.6]

Additional context
My zsh folder abides by XDG specs, and is specified by the environment variable ZDOTDIR, pointing to ~/.config/zsh.

Manual installation works.

No current settings to display user@host in singleline prompt

What
Currently, users have two options for the left prompt:

  1. Singleline:
    >
    
  2. Multiline:
    user@host
    >
    

It would be nice if there is a third option:

  1. Singleline verbose:
    user@host >
    

Why
I like the compactness of singleline. However, since I remote to several different servers, I would like to know which user and machine I am connected to.

How
Following the syntax already used at

# distinction between single and multiline prompt
# activate multiline with TYPEWRITTEN_MULTILINE=true
if [ "$TYPEWRITTEN_MULTILINE" = true ]; then
# left prompt definition (multiline)
PROMPT="${user_host}
${prompt}"
else
# left prompt definition (singleline)
PROMPT="${prompt}"
fi

I propose to add a new option for singleline verbose to implement the third option as described above.

Acceptance Criteria
User can set singleline verbose for left prompt via adding the following to .zshrc:

export TYPEWRITTEN_SINGLELINE_VERBOSE=true

Custom date/time format string

Is your feature request related to a problem? Please describe.
The date format used in the US is different to that used in Europe, the default timestamp shown in the tmux status bar with typewritten uses the US date format (month before day).

Describe the solution you'd like
Allowing the user to set something like export TYPEWRITTEN_DATE_FRMT=%d/%m/%Y, %H:%M:%S to set a custom date/time string would be fantastic.

Overwriting lines of the previous output

Description:
When using the "pure" prompt layout, sometimes when the command finishes to run, the prompt is placed some lines up from where it should have been placed, causing the previous output to be replaced.

To Reproduce:
1.Just do a normal 'oh.my.zsh' installation
2.Install 'typewritten' using the 'oh my zsh' instructions
3.Change the prompt to 'pure' using the command: export TYPEWRITTEN_PROMPT_LAYOUT="pure"

I also changed the cursor to 'block' on all my machines, and didn't tested with the normal one.

Expected behavior:
Get the full output.

Screenshots
2020-11-02-023250_5846x1080_scrot_cropped

Desktop:

  • OS: Arch Linux, Ubuntu

Additional context:
I was able to reproduce the bug on a Ubuntu machine, and there when I tested 'typewritten' with the original prompt layout('singleline'), there was no problem. Also I didn't attached all the screenshots, because I tested on 2 sistems, with 3 different terminal emulators and three zsh themes and the result was the same as the one I gave, only on the typewritten ones with the 'pure' promp layout had the problem, on all the others there was no promblem. I have all of the screenshots and can upload if anyone wants.

Also tested on the other "multiline" ones and the problem happens on all of them. I only tested the other multiline prompts on my Arch machine by the way.

Also, here's my .zshrc:

##
## ZSH Config File
##

# Path to your oh-my-zsh installation.
export ZSH="/home/chomuske/.oh-my-zsh"

export TYPEWRITTEN_PROMPT_LAYOUT="pure"
export TYPEWRITTEN_CURSOR="block"
export TYPEWRITTEN_COLORS="symbol:#fb4934;symbol_error:#cc241d;error_code:#cc241d;git_branch:#83a598;current_directory:#83a598;arrow:#fbf1c7;user:#8ec07c;host_user_connector:#fbf1c7;host:fe8019;prompt:f9f5d7;virtual_env:#f1bd2f;git_rebasing:#d3869b;git_status_staged:#b16286;git_status_new:#fe8019;git_status_modified:#d65d0e;git_status_renamed:#ebdbb2;#git_status_deleted:#458588;git_status_unmerged:#98971a;git_status_diverged:#fabd2f;git_status_ahead:#689d6a;git_status_behind:#b8bb26;git_status_stash:#928374"
#export TYPEWRITTEN_COLOR_MAPPINGS="primary:red;secondary:#fb4934;accent:black;foreground:black"

ZSH_THEME="typewritten"
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# CASE_SENSITIVE="true"
# DISABLE_UPDATE_PROMPT="true"
# export UPDATE_ZSH_DAYS=13
# DISABLE_MAGIC_FUNCTIONS="true"
# DISABLE_LS_COLORS="true"
# DISABLE_AUTO_TITLE="true"
# ENABLE_CORRECTION="true"
# COMPLETION_WAITING_DOTS="true"
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# HIST_STAMPS="mm/dd/yyyy"
# ZSH_CUSTOM=/path/to/new-custom-folder

plugins=(
  git
)

source $ZSH/oh-my-zsh.sh

# User configuration

export PAGER="vimpager"

Also, sorry if I misspelled anything English is not my mother tongue.

Showing path relative to home instead of just dir name.

Is your feature request related to a problem? Please describe:
I have lots of dirs that have similar/same name and it sometimes gets confusing.

Describe the solution you'd like:
An option to show the entire path relative to ~ unless you're in a git repository.

feat: Support git relative path on pure layout

Is your feature request related to a problem? Please describe.
Relates to #106

Describe the solution you'd like
The pure layout should take into account the TYPEWRITTEN_RELATIVE_PATH variable value, and display the path depending on that value.

Theme is not loading customizations

Describe the bug
I have installed Typewritten as oh-my-zsh theme following the instructions in the documentations.
Currently i have the next exported variables on my .zshrc file:

export TYPEWRITTEN_SYMBOL="$"
export TYPEWRITTEN_RIGHT_PROMPT_PREFIX="# "

When my terminal starts, it loads all the variables correctly (i checked their values using echo $TYPEWRITTEN_SYMBOL and echo TYPEWRITTEN_RIGHT_PROMPT_PREFIX ). However the theme is not loading these custom settings, it requires me to run source .zshrc in order to show them as expected.

This happens on both the default terminal of Manjaro and Tilix (my main).
I would appreciate any help!

Visual bug when using completion

Describe the bug
When using tab completion on commands like cd when there is 2 options or more, there is a visual bug so that the command shows like cdcd. This happens with other commands as well, mkdir becomes mkmkdir. The command run as normal.
Since i don't a plugin manager for zsh, i could quickly comment lines of all the other features (like syntax highligh) and verify that this only happens with the prompt enable.

To Reproduce
Steps to reproduce the behavior:

  1. Enable completion with autoload -Uz compinit && compinit
  2. Install Typewritten manualy as the guide says
  3. Use completion when there is 2 or more options
  4. See the visual bug

Expected behavior
No visual bug

Desktop (please complete the following information):

  • OS: Arch Linux
  • Terminal: Alacritty (it also happens on the tty so I don't think is related)
  • ZSH Version : 5.8

Edit: add tty information

Random async error message

Not sure how to reproduce this it happens randomly it seems

❯                                                                                                                          typewritten
async_worker_eval: no such async worker: _worker
async_job: no such async worker: _worker
async_job: no such async worker: _worker
async_job: no such async worker: _worker
❯                                            
```

I have to exist and restart the shell to get it to go away, it will print this error after every command

bug: red prompt symbol after errors with TYPEWRITTEN_DISABLE_RETURN_CODE

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'terminal'
  2. Enter a fake command, for example 'fake_command'
  3. Press enter

**Actual behavior **
Color of prompt symbol is red.

Expected behavior
Color of prompt symbol the same, as on prev line.

Screenshots
Screen Shot 2020-07-21 at 5 37 33 PM

document zinit install

So I wrote this, and I think it's right, but I'm not entirely certain

zinit ice wait'!' lucid nocd atload'!tw_setup'$
zinit load reobin/typewritten$

The zinit docs say

The exclamation mark in atload'!…' is to track the functions allowing the plugin to be unloaded

hoping you can clarify if I'm doing the right thing.

Cannot turn off cursor blinking

I would like to be able to turn off the blinking cursor. Even commenting out all the cursor related lines at the bottom of the theme does not seem to fix this.

Support vi-mode

Is your feature request related to a problem? Please describe.
when i set set -o vi in my zshrc, i could use the vi-mode but typewritten didn't show some feedback

Describe the solution you'd like
just give some feedback to let me know i have entered.

Additional context
typewritten is very nice, thanks for your work.

`pure_verbose` layout does not show full path when `TYPEWRITTEN_RELATIVE_PATH` is unset

Describe the bug

When TYPEWRITTEN_RELATIVE_PATH is unset, pure_verbose layout doesn't show the full path. The pure layout does by default. As it's a variant of pure, I expected the same default behavior.

To Reproduce
Steps to reproduce the behavior:

  1. Unset TYPEWRITTEN_RELATIVE_PATH
  2. Set TYPEWRITTEN_PROMPT_LAYOUT equal to pure_verbose

Expected behavior

Display full path like default behavior of pure layout.

Screenshots

image

Git relative path showing root directory name twice when in Git root

I have set TYPEWRITTEN_GIT_RELATIVE_PATH=true to always show me the name of the root Git directory. When I cd into a Git directory now, it sometimes shows the directory name twice instead of once. For example, cd-ing into my local clone of the typewritten repo shows this right prompt:

https://i.imgur.com/jdOLImQ.png

This isn't always the case, only in the folder I keep my projects in.
I believe that the main issue here is that this overarching project folder has two different names: git shows the folder name tubCloud, which is the real folder name. pwd, on the other hand, shows the name I used to cd into this directory: I have Uni symlinked to tubCloud to make things easier for me.

https://i.imgur.com/Zn3czLi.png

I have no idea if this would be easily fixable easily or not, but thanks for taking a look anyway!

EDIT: I was actually able to fix this myself quite easily, please see my PR

Add option to customize prompt symbol

Thanks for this great theme. I really enjoy it!

I was wondering if supporting a prompt symbol would be something worthwhile. Pure suppots it via a PURE_PROMPT_SYMBOL and we could have a TYPEWRITTEN_PROMPT_SYMBOL.

What do you think?

Color Mapping error

After installation through npm, I'm getting this error

/usr/lib/node_modules/typewritten/lib/colors.zsh:1: no matches found: [foreground]=default
prompt_typewritten_setup:37: division by zero

And the default prompt for zsh is used instead.

I've encountered this problem on two of my machines, both running Ubuntu 18.04.

$ zsh --version
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)

putting PROMPT and RPROMPT close to each other

I am on a wide screen and tend to make my terminal cover about 80% of it.
I was wondering if I could change setting in order to show RPROMPT (mainly git information) close to the (left)PROMPT

This obviously will only work with multiline setting

Prompt has 4 duplicated lines

Describe the bug
After installing typewritten, I have a prompt of 4 duplicated lines instead of one (see screenshot below).

To Reproduce
Steps to reproduce the behavior:

  1. Install the theme using instructions here for oh-my-zsh.
  2. Add ZSH_THEME="typewritten/typewritten" to ~/.zshrc
  3. Open a new iTerm2 window
  4. See error

Expected behavior
A prompt of one line instead of 4.

Screenshots
Screenshot 2020-09-15 at 10 08 43

Desktop (please complete the following information):

  • OS: MacOs 10.15.6

Additional context
I've first tried to install typewritten via nom and then remove installation (as it was not working for me).
The issue is the same on all terminal emulator I've tried (iTerm2.app, Terminal.app, shell inside emacs)
The issue is not occurring with another theme.

npm install script not working correctly

Describe the bug
When installing via npm, typewritten.zsh and async.zsh were not symlinked to /usr/local/share/zsh/site-functions the directory did not exist.
It also created a new .zshrc on my $HOME directory, instead of my $ZDOTDIR directory.

To Reproduce
Steps to reproduce the behavior:

  1. npm install -g typewritten

Expected behavior
The script should symlynk the corresponding files to $FPATH, and respect the $ZDOTDIR env variable

Desktop (please complete the following information):

  • manjaro linux gnome editon

Additional context
I was able to install it correctly by symlinking the typewritten.zsh file to a directory inside $FPATH.
I asume the script did not work correctly because in my machine the directory /usr/local/share/zsh did not exist.
What I did not do was to symlink the async.zsh file, but it seems to work fine for me, please let me know how much this action could affect performance.

Can we add kubernetes integration?

Is your feature request related to a problem? Please describe.
No, just a feature to display the kubernetes cluster I'm in + the namespace

Describe the solution you'd like
To display the kubernetes cluster I'm in + the namespace

Describe alternatives you've considered
If it would be possible to add my custom functions that could also work.

Unable to disable blinking cursor when using iTerm2

Describe the bug
After installation (using method npm install -g typewritten), the cursor blinks despite the iTerm2 setting having blinking cursor disabled. Turning on blinking cursor then turning it off immediately again will give the desired outcome, but the cursor will begin blinking again after any commands are entered.

I've noticed that after entering a command, there is a slight pause before the cursor begins blinking again.

To Reproduce
Steps to reproduce the behavior:

  1. Install typewritten via npm install -g typewritten in iTerm2
  2. Check settings to ensure that Profiles > Text > Blinking cursor is disabled
  3. See blinking cursor in terminal

Expected behavior
The cursor would be static from initialization, or would remain un-blinking after resetting the settings.

Desktop (please complete the following information):

  • OS: MacOS Catalina 10.15.7
  • iTerm2 3.4.2

Additional context
Apologies if this bug is really an iTerm2 bug; this theme is easily the best one I've ever seen for oh-my-zsh and I'm baffled by this behavior.

about configure

hello, i want to change the default configure.
but i don't know change which file
image
so, i'm so sorry to bother you. Thank you very much.

How to uninstall typewritten?

Uninstall typewritten

I don't know how to uninstall this.
please help me..!!
I want to delete it completely, not just deactivate it. 🤔

Terminal rendered dummy with noclobber set

Describe the bug
I using zimfw, which has NOCLOBBER set. After installation, when restart shell, I get a warning,

async_start_worker:38: can't clobber parameter errfd containing file descriptor 0

Thereafter, unable to use the terminal with various editors.

OS: macOS Catalina 10.15.7
ZSH_VERSION: 5.7.1
ZIMFW: 1.4.3

To Reproduce
Steps to reproduce the behavior:

  1. set -o noclobber in .zshrc
  2. start/restart shell
  3. mg <file>, editor I use.
    panic: standard input and output must be a terminal

Expected behavior
I should be able to edit the file.

Solution
Update zsh-async, the fix is present in mafredri/zsh-async@c7f35ec

How to setup like the demo

Sorry, if this is not the right place to ask.

I am setting up a new laptop. Found this amazing zsh theme.

But after I install iTerm, oh-my-zsh and typewritten, the iTerm zsh theme is still the default theme.

Is there further instructions to setup like the demo in https://typewritten.dev/#/.

Thanks!

show path relative to repo/home

so... I thought that mh was doing what I'm about to ask for, turns out... it's just truncating and the path I had was the perfect number of characters... I don't really know how feasible this really is...

this is what mh was showing...

[calebcushing:.../aurelia/packages/__tests__]$     (topic/proxy✱)

what I thought this was saying was the root of the git is the aurelia directory, and I'm in aurelia/path/to, and I thought it was saying that I could use ... to get there.

so what would be useful, because I definitely have more than one project with the same standard structure, directory/filenames, so what would be useful, maybe is showing the git root directory name.

maybe like this

>               # aurelia/.../__tests__ -> topic/proxy $ +

and if you're not in a repo

>               # ~/.../__tests__

Doesn't show git stat in a repo direcotory

Describe the bug
Doesn't show any git stat if in a git repo direcotory. The prompt works though

To Reproduce
Steps to reproduce the behavior:
I installed echoed $fpath and all. The prompt works.

Expected behavior
To show the git status if in the git repo direcotory

Screenshot
error

Desktop (please complete the following information):

  • Void Linux OS
  • Firefox Browser
  • Zsh version 5.8

Async not providing git info

Describe the bug
Followed ZSH install instructions, configuration and other items work, git status is not displayed. It's tough to troubleshoot async behavior.

To Reproduce
Steps to reproduce the behavior:

  1. Follow install instructions
  2. Open terminal with iterm2 on osx
  3. no git output

Expected behavior
Expect the git status to be displayed

Screenshots
Screen Shot 2020-11-01 at 12 00 06 PM

Desktop (please complete the following information):
macos 10.15.7

Additional context

relevant zshrc:

export PATH=$HOME/bin:$HOME/.local/bin:$HOME/go/bin:$HOME/bin:/usr/local/bin:$PATH

export ZSH="/Users/acaito/.oh-my-zsh"

export TYPEWRITTEN_RIGHT_PROMPT_PREFIX="# "
export TYPEWRITTEN_PROMPT_LAYOUT="pure"
export TYPEWRITTEN_GIT_RELATIVE_PATH="true"

ZSH_THEME="typewritten"
#ZSH_THEME_RANDOM_CANDIDATES=( "typewritten" "fishbone++" "spaceship" )

plugins=(git z)

# User configuration
#eval $(thefuck --alias)
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
# alias awsume=". awsume"

fpath=(~/.awsume/zsh-autocomplete/ $fpath)
source $ZSH/oh-my-zsh.sh

autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform

I'm not receiving any error output in terminal.

TYPEWRITTEN_DISABLE_RETURN_CODE still shows error

Describe the bug
When setting the TYPEWRITTEN_DISABLE_RETURN_CODE to true in the .zshrc config, the error code of the last command still appears before the prompt

The error seems to be in the commit 3116307 as the variable names were refactored (presumably with a regex) which caused the variable to change name (TYPEWRITTEN_DISABLEtw_RETURN_CODE). Even when setting this new variable to true, the error code is successfully removed, but the prompt looses its coloring.

The problematic line

To Reproduce
Steps to reproduce the behavior:

  1. Clone the current master branch
  2. Set typewritten as your oh-my-zsh theme
  3. Set the variable TYPEWRITTEN_DISABLE_RETURN_CODE in your .zshrc
  4. Open a new terminal and type an erroneous command

Expected behavior
The error code returned by the previous command to not be shown before the prompt

Screenshots
Setting TYPEWRITTEN_DISABLE_RETURN_CODE to true
image

Setting TYPEWRITTEN_DISABLEtw_RETURN_CODE to true
image
Observe the image above does not have color

Additional context
This hasn't been tested using typewritten as a normal prompt but is assumed to be the same as the same script is used

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.