GithubHelp home page GithubHelp logo

shellder's Introduction

UNMAINTAINED: I don't use MSYS2 anymore so I don't maintain this project anymore. If you want to use shellder, consider the alternatives below:

  1. powerlevel10k
    • Lowest latency. Utilizes async tasks and gitstatusd.
    • Only for ZSH
    • Not suits with MSYS2 or Cygwin since it's a big shell scripts. (But who uses MSYS2/Cygwin while we have WSL2?)
  2. starship
    • Higher latency than powerlevel10k, but still it's faster than most shell themes.
    • Compatible with many shell environments (i.e. Powershell, bash, tcsh, fish, ...)
    • No slowdown in MSYS2 or Cygwin since it's a Rust binary not a shell script.

 


 

shellder

  1. No solarized ― xterm256 colors are beautiful enough
  2. zsh + fish support
  3. Speed ― Carefully optimized for slow environments like MSYS2

 

screenshot image of shellder

Installation

You can install shellder via various plugin managers.

Zsh, zinit

# ~/.zshrc
zinit light simnalamburt/shellder

Fish, chips

# ~/.config/chips/plugin.yaml
github:
- simnalamburt/shellder
# ~/.config/chips/plugin.yaml
github:
- simnalamburt/shellder

 

Configuration

You can turn off Fish-like path shrinking by adding the following to your ~/.zshrc:

# ~/.zshrc
export SHELLDER_KEEP_PATH=1

To control path shrinking in fish shell, set fish_prompt_pwd_dir_length or fish_prompt_pwd_full_dirs environment variable. See prompt_pwd for the further details.

 

Fonts

You'll need a powerline patched font. If you don't have one, download one or patch some fonts on you own.

 


shellder is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0). See COPYRIGHT for details.

shellder's People

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

shellder's Issues

Indicate "fisher" installation

Not very important but I'm using fisher, I did:

fisher simnalamburt/shellder

Installation is ok. So maybe you may write this in the README file ;)

Strange characters on ubuntu :\

Hi there, I am getting these weird characters instead of the normal block-like characters that should be shown. Is this because I'm using ubuntu and not a mac? Say it ain't so :(

sadface

Replace some emojies (⚙, ⚡) with other characters

Sorry for non-korean people. I'm writing this issue in hurry, so I did not have enough time to translate this issue in English. I apologize.

유니코드 9.0에서 몇몇 이모지들(⚡) 글자의 width가 neutral에서 wide로 변경되었다고 한다. 이유는 저 이모지들은 일본에서 온 글자들이니 일본에 맞게 wide로 재지정된거라고 합니다. 이에따라 관련 폰트들이나 다른것들은 wide로 다 재지정이 되었지만, vte나 tmux 등 여러 프로그램들은 아직도 neutral로 설정되어있기때문에 렌더링과 레이아웃이 맞지않아 글자들끼리 겹치거나 하는 문제가 발생하고있습니다.

이 문제를 해결하려면 그냥 vte가 고쳐질때까지 저 글자를 쓰지 않는것이 답인듯 합니다.

  • → Yellow # (#은 예전부터 전통적으로 루트권한을 의미하는 기호였음)
  • 그 외 , , , , , , 들은 문제를 일으키지 않음
References

Using nerd fonts to get arrows on shellder

I have installed shellder with ohmyfish, and also installed the .ttf files for source-code-pro (nerd fonts), but I still can't see the arrow prompts on shellder. Is this an error or is there something I have to add to a config file?

warning: function available is deprecated and will be removed soon.

I just updated my omf modules, and the result is a lot of warning: function available is deprecated and will be removed soon. for each command I type. Funnily enough, the issue goes away if I copy the block:

if printf '%s\n' '2.2.0' $FISH_VERSION | sort --check=silent --version-sort
  # Current version ≥ 2.2.0
  function available -a name -d "Check if a function or program is available."
    command -v "$name" ^/dev/null >&2
  end
else
  # Current version < 2.2.0
  function available -a name -d "Check if a function or program is available."
    type "$name" ^/dev/null >&2
  end
end

and run it in my shell.

image

A wild "Unknown option -q" error appears in fish 2.7.0

~/.config/fish/functions/fish_prompt.fish (line 240): function: Unknown option “-q”
~/.config/fish/functions/fish_prompt.fish (line 240): 
function type -q -a name -d "Check if a function or program is type -q."
^
from sourcing file ~/.config/fish/functions/fish_prompt.fish
	called on standard input

in command substitution
	called on standard input


       functionfunction - create a function
        -

   Synopsis
       function NAME [OPTIONS]; BODY; end

function: Type “help function” for related documentation


function type -q -a name -d "Check if a function or program is type -q."
  type "$name" ^/dev/null >&2
^
from sourcing file ~/.config/fish/functions/fish_prompt.fish
	called on standard input

in command substitution
	called on standard input

Related pull request: #22

Fish Unknown command prompt_segment

fish: Unknown command: prompt_segment
~/.local/share/omf/themes/shellder/fish_mode_prompt.fish (ligne 8) : 
                prompt_segment green black "I"
                ^
in function 'fish_mode_prompt'
dans la substitution de commande

After last update of fish, version 3.2.1.

Async git status

Hi,

I'm wondering if it is possible to make the "displaying git status" asynchronous? If we keep it synchronous, then we have to wait for a moment after every command (because git status takes time). This will be critical in a large project.

How do you think?

Thanks

How to enable it??

I think I am missing something from the documentation or it is just broken.
I've installed it via zplug, then added zplug 'simnalamburt/shellder', as:theme. And... nothing chagned. Issuing zplug ... as:theme results to:

[zplug] simnalamburt/shellder: already managed

Uhmm... OK, now what? Would be great to have a bit better README.md that allows dumb users like me to just have it without spending hours debigging shell code why this is not working...

Reinvent shellder with a proper programming language.

Why?

I want to use shellder in everywhere (sh, bash, zsh, fish) and reinventing shellder in each shell language is a mad journey. By reinventing shellder in a proper programming language and distributing it as executable binary, I can achieve three goals at once.

  1. Performance

Most programming language is faster than shell script.
2. Cross platform.

Compiled binary doesn't discriminate shells. When it is executed in $PS1, it will just work fine.
3. Easy Development

Shell scripts are crazy and there're full of unexpected behaviors. You just shouldn't develop something in shell script unless you're writing tiny utility. And now I see shellder as more than just small utility or wrapper.

So, which PL are you going to use?

Requirements

  • Speed
  • It should be able to compiled in binary, and executed without any dependency.
  • Easier than shell script.
  • It should support Windows (cygwin, msys2), OS X and Linux. Both 32 and 64bit. Deployment will be (hopefully) automated with CI tools like travis.

Candidates

  • Go (easy > speed)
  • Rust (easy < speed)

Related with #9
Closes #5

zsh / zplug : need to add "use"

Hi,

I've just installed an ubuntu server (16.04), and it seems I have to add a tag for zplug to load shellder now :

zplug "simnalamburt/shellder", use:shellder.zsh-theme

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.