Giter VIP home page Giter VIP logo

jovial's Introduction

Hello World!

zthxxx's Github Stats

Hi, I'm zthxxx, a web developer 😄

💖 Love open-source work and watching anime 👀

💡 Passion for do project that improve dev experience, or relate to anime

⚡ Always in learning some cool technology driven by curiosity 😎

Tools & Interests

Games

Genshin Impact

Viewer

jovial's People

Contributors

brendanfalk avatar emotality avatar esquith avatar luisdogo avatar smac89 avatar veegishx avatar zthxxx 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  avatar  avatar  avatar

jovial's Issues

command not found: add-zsh-hook

When opening Terminal on macOS, I get the following errors:

/Users/emotality/.oh-my-zsh/themes/jovial.zsh-theme:13: command not found: add-zsh-hook
/Users/emotality/.oh-my-zsh/themes/jovial.zsh-theme:218: command not found: add-zsh-hook

sed: 1: "/Users/mac/.zshrc": invalid command code m

While installing and after typing the command given in the readme file i get this error :

chsh: no changes made
sed: 1: "/Users/mac/.zshrc": invalid command code m
sed: 1: "/Users/mac/.zshrc": invalid command code m
Warning: git 2.20.1 is already installed and up-to-date
To reinstall 2.20.1, run brew reinstall git
sed: 1: "/Users/mac/.zshrc": invalid command code m

failed to load module `zsh/pcre'

Hi I'm trying to install this theme with oh-my-zsh on Mac OS Catalina 10.15.7.
I get this error when I open a new terminal window after installing Jovial theme:

update_terminal_cwd:12: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found                                                                                        
update_terminal_cwd:12: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex

I don't have pcre.so file in /usr/lib/zsh/5.7.1/zsh/, do you know how I would install it?

Inconsistency in bold text

Hi,

I was trying out your zsh theme and I noticed some inconsistency in the bold text. Some of my commands had bold text and some did not. It's difficult to reproduce the bug but it's definitely there after you've used the theme for some time.

I believe I managed to track the source of the issue to the lack of %b in https://github.com/zthxxx/jovial/blob/master/jovial.zsh-theme#L139 Making this change helped solved the inconsistency in the bold text. I suspect that exit-code.suffix may also require this change.

Don't override TERM

Exporting TERM here is unexpected and causes issues when there's a mismatch between the capabilities of xterm-256color and your actual terminal. e.g. I expected $terminfo[fsl] and $terminfo[tsl] to be available for iTerm/Alacritty, but it's not available because my environment thinks TERM=xterm-256color

export TERM=xterm-256color

History Show

First how can i delete and remove all of your installation from mac?
and look at this problem :
Screenshot 1402-12-15 at 11 54 39 PM

某些情况下终端的输出会带有不消失的光标

首先非常感谢作者大大的主题,非常漂亮。我是刚刚学习linux使用的学生,我在安装您的主题后在使用时发现在终端的输出末尾有时会带有一个不消失的光标,请问这个可以去掉吗?
image
我正在使用的系统是ubuntu 22.04,非常感谢!

Conda(Python) integration

Hi! I was trying to add conda integration for the theme. To show the conda venv name I need to look not only ant $VIRTUAL_ENV (used by default python) but also at $CONDA_DEFALUT_ENV variable.

So I started simply duplicating the @jov.venv-info-prompt() inside jovial.zsh-theme file:

@jov.conda-info-prompt() {
    [[ -z ${CONDA_DEFAULT_ENV} ]] && return 0
    echo "${JOVIAL_PALETTE[normal]}(${JOVIAL_PALETTE[venv]}$(basename $CONDA_DEFAULT_ENV)${JOVIAL_PALETTE[normal]}) "
}

I've added the reference also here:

echo "${SGR_RESET}${corner_bottom}$(@jov.typing-pointer) $(@jov.venv-info-prompt) $(@jov.conda-info-prompt) ${SGR_RESET}"

And it worked very well.

Now I want to try something more since, once installed Anaconda, conda environment is always settled on base I want the prompt to show me the $CONDA_DEFAULT_ENV only when it's not equal to base value.

I've tried, without success, this:

@jov.conda-info-prompt() {
    if [["${CONDA_DEFAULT_ENV}" != "base"]]; then
        echo "${JOVIAL_PALETTE[normal]}(${JOVIAL_PALETTE[venv]}$(basename $CONDA_DEFAULT_ENV)${JOVIAL_PALETTE[normal]}) " 
    fi
}

but I recieve this error when I start a new terminal window:

@jov.conda-info-prompt:2: no matches found: [[base!=base]]

Suggestion to fix that and maybe finalize these changes? If possible I want to make also a commit with this. Conda it's very used by python developers and could be a nice add to the theme :)

hashtag color issue

Hi,

When using hashtags with the jovial theme the color of the hashtag and the text after the hashtag becomes black and hard to see with a dark terminal background. Is there a way to change the color?

Regards

How can i delete the upper line break?

###i want delete the first empty line

(this line im talking about)
╭─[xxxxxxxx] as xxxxxxx in ~ 20:54:19
╰──>

i don't know work with shell, sorry :s

[solved] 'zsh/pcre' error after installation

after installation, I have those errors :

update_terminal_cwd:12: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found                                                                                                
update_terminal_cwd:12: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex
regexp-replace:28: failed to load module `zsh/pcre': dlopen(/usr/lib/zsh/5.7.1/zsh/pcre.so, 9): image not found
regexp-replace:28: -pcre-match not available for regex

do you have ant idea why ?

Intellij terminal format break problem

First of all, thank you for a very nice project. 👍

I am using M1 Mac Air.

The terminal uses iTerm, and the font is applied with Monaco.

There is no problem with iTerm, but there is a problem with the Intellij terminal.

Intellij font is Jetbrains Mono, and the font spacing is 1.0.

As you can see in the image, the branch name is displayed below the time, and the last character goes to the next line.

This problem only occurs in Intellij terminals.

Since the branch name is already displayed on the top line, I think it is redundant to display it again under the time.

What do you think about removing the branch name displayed under the time?

iTerm

image

Intellij Terminal

image

@jovial-prompt:1: bad floating point constant after source zshrc file

OS: MacOS 12.0.1
Shell: zsh 5.8 (x86_64-apple-darwin21.0)
Terminal: iTerm2 Build 3.4.12

And here is my little zshrc file to reproduce this problem:

ZPLUGINDIR=$HOME/.zsh/plugins

function load-file () {
    local url="$1"
    local file_name=${${url##*/}%}
    local dir_name="${ZPLUGINDIR:-$HOME/.zsh/plugins}/$file_name"

    if [[ ! -d $dir_name ]]; then
        mkdir -p $dir_name
    fi
    if [[ ! -f $dir_name/$file_name ]]; then
                echo "Downloading $url..."
        curl -sSL $url -o $dir_name/$file_name
    fi

    source $dir_name/$file_name
    fpath+=$dir_name
}

setopt prompt_subst

autoload -U colors && colors

typeset -AHg FG BG

for color in {000..255}; do
  FG[$color]="%{\e[38;5;${color}m%}"
  BG[$color]="%{\e[48;5;${color}m%}"
done

files=(
  https://github.com/zthxxx/jovial/raw/master/jovial.zsh-theme
)

for file in $files; do
    load-file ${file}
done
unset file

But it worked if I source theme the theme file ~/.zsh/plugins/jovial.zsh-theme/jovial.zsh-theme interactively.

I have no idea whats going on 🥵

Tabbing collapses previous lines

When tab is hit while using this theme, it moves the command line up, removing the lines above it. If this is intentional, how is it disabled?
tab-collaps

How can I reduce the size of the path?

Hi! Thanks for the amazing work, I'm loving jovial. One thing that I wish I could customize is the size of the path.

right now I have the full path ~/code/manegarrincha/portfolio/app/assets/stylesheets

I wish I could have just ~/stylesheets .

Or perhaps choose the number of folders displaying. i.e folders{2} -> ~/assets/stylesheets

I've tried to look into but wasn't successful =/

home diertory detected as node.js project

I have a "node_modules" directory in my home directory because of globally-installed node.js packages.

Suggested fix: Do not detect the home directory as a project

Override theme variables not working

Hey everyone!
I'm trying to override the theme variables such as: JOVIAL_SYMBOL and JOVIAL_PALETTE but unfortunately no success yet.

First I did what you recommended on symbols section, but then I got the following error assignment to invalid subscript range. After doing some researches I could fix this error by adding typeset -gA JOVIAL_SYMBOL before any assignments of JOVIAL_SYMBOL to reset the type (same thing for JOVIAL_PALETTE).
I'm currently not getting any error but the customization is not working, it's always getting jovial default values.

Here's my ~/.zshrc setting for it:

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="jovial"

typeset -gA JOVIAL_SYMBOL
JOVIAL_SYMBOL[git.dirty]='✘'
JOVIAL_SYMBOL[arrow]='->'
JOVIAL_SYMBOL[arrow.git-clean]='->'
JOVIAL_SYMBOL[arrow.git-dirty]='->'

typeset -gA JOVIAL_PALETTE
JOVIAL_PALETTE[host]='%F{218}'
JOVIAL_PALETTE[user]='F{224}'
JOVIAL_PALETTE[root]='%B%F{204}'
JOVIAL_PALETTE[path]='%B%F{162}%}'
JOVIAL_PALETTE[git]='%F{198}'
JOVIAL_PALETTE[venv]='%F{212}'
JOVIAL_PALETTE[time]='%F{225}'

I don't really know what could it be, could you help me pls?
Thanks 🎀

Plugin `zsh-history-enquierer` not found (npm permission denied)

Hi, I run the script as instructed
And upon launching the terminal I see this before the shell:

[oh-my-zsh] plugin 'zsh-history-enquirer' not found

I have tried installing that individually as well, but to no avail
Using both the npm command and the curl one

Installing leaves trailing characters in plugin section

Hello,
When I installed your theme, the plugins section of my .zshrc was left in an unusable state.
There appears to have been a trailing n after every plugin name, IE git became gitn, autojump became autojumpn, etc, etc....

I thought I should bring this to your attention.

Otherwise, delightful work, I really like the theme you made ^_^

Bug when Git changes are detect

Hi @zthxxx ,

First congratulations for this beautiful work!

I'm having this bug when use the Git and the repository contains changes.

1° When I open an empty Terminal and navigate to the repository folder:

captura de tela de 2018-12-23 14-19-46

2º When I open the terminal directly on repository folder on Nautilus:

captura de tela de 2018-12-23 14-20-30

What can be this error?

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.