Code Monkey home page Code Monkey logo

alien's Introduction

alien

GitHub tag

Contributors GitHub last commit (branch) license GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

alien theme is faster than a lot other themes.

Why? It updates part of the prompt asyncronously - the time consuming processings like git status checking, git dirty copy checking etc.

How? It starts a background job for these process, and in the mean time draws initial prompt and lets you use the terminal as you would normally.

alien theme is independent of any library like Oh-My-Zsh or Prezto. Whatever it needs already included inside. The only exception is font. You need to install the powerline patched fonts to properly display the prompt.

Asciicast v2.0.0

asciicast

Requirements

  • zsh (obviously)
  • powerline patched fonts see here

Installation

Add the following line to your .zshrc depending on your zsh plugin manager

antigen theme eendroroy/alien alien
zgen load eendroroy/alien
zplug "eendroroy/alien"

Manually cloning

git clone https://github.com/eendroroy/alien.git
cd alien
git submodule update --init --recursive --remote

Add the following line to your ~/.zshrc

source ~/alien/alien.zsh

Configuration

add all configurations before plugin definitions (or sourcing the theme)

sections

To define the order of sections to display:

export ALIEN_SECTIONS_LEFT=(
  exit
  battery
  user
  path
  newline
  ssh
  venv
  prompt
)

export ALIEN_SECTIONS_RIGHT=(
  time
)

To define if sections are to be loaded asyncronously add :async to the section-name:

export ALIEN_SECTIONS_LEFT=(
  exit
  battery
  user
  path
  vcs_branch:async
  vcs_status:async
  vcs_dirty:async
  newline
  ssh
  venv
  prompt
)

section seperator

To change the section-separator:

export ALIEN_SECTIONS_LEFT_SEP_SYM=
export ALIEN_SECTIONS_RIGHT_SEP_SYM=

prompt-section

To change the symbol of the input-prompt:

export ALIEN_PROMPT_SYM=

To change colors:

export ALIEN_PROMPT_FG=100

exit-section

To disable the numeric exit-code:

export ALIEN_SECTION_EXIT_CODE=0

To change colors:

export ALIEN_SECTION_EXIT_FG=100
export ALIEN_SECTION_EXIT_BG=150
export ALIEN_SECTION_EXIT_BG_ERROR=200

time-section

To change the format::

export ALIEN_SECTION_TIME_FORMAT=%H:%M:%S # default is %r

To change colors:

export ALIEN_SECTION_TIME_FG=100
export ALIEN_SECTION_TIME_BG=150

battery-section

To change colors:

export ALIEN_SECTION_BATTERY_FG=100
export ALIEN_SECTION_BATTERY_BG=150

user-section

To show the hostname:

export ALIEN_SECTION_USER_HOST=1

To change colors:

export ALIEN_SECTION_USER_FG=100
export ALIEN_SECTION_USER_BG=150

path-section

To change the number of path-components to display:

export ALIEN_SECTION_PATH_COMPONENTS=2

To change colors:

export ALIEN_SECTION_PATH_FG=100
export ALIEN_SECTION_PATH_BG=150

vcs_branch-section

To change colors:

export ALIEN_SECTION_VCS_BRANCH_FG=100
export ALIEN_SECTION_VCS_BRANCH_BG=150

vcs_status-section

To change colors:

export ALIEN_SECTION_VCS_STATUS_FG=100
export ALIEN_SECTION_VCS_STATUS_BG=150

vcs_dirty-section

To change colors:

export ALIEN_SECTION_VCS_DIRTY_FG=100
export ALIEN_SECTION_VCS_DIRTY_BG=150

versions-section

Define versions to show:

export ALIEN_VERSIONS_PROMPT='PYTHON_S RUBY_S NODE_S'

Supported versions: PYTHON PYTHON_S RUBY RUBY_S JAVA JAVA_S GO GO_S ELIXIR ELIXIR_S CRYSTAL CRYSTAL_S NODE NODE_S PHP PHP_S

color scheme

you can chose from 6 different color schemes (blue is the default)

in ~/.zshrc just add any from the following three lines before your antigen theme ... line

export ALIEN_THEME="blue"

blue

export ALIEN_THEME="green"

green

export ALIEN_THEME="red"

red

export ALIEN_THEME="soft"

soft

export ALIEN_THEME="gruvbox"

gruvbox

export ALIEN_THEME="bnw"

gruvbox

Custom Color

ALIEN_PROMPT_FG=87
ALIEN_SECTION_EXIT_FG=0
ALIEN_SECTION_EXIT_BG=87
ALIEN_SECTION_EXIT_BG_ERROR=202
ALIEN_SECTION_TIME_FG=0
ALIEN_SECTION_TIME_BG=193
ALIEN_SECTION_BATTERY_FG=0
ALIEN_SECTION_BATTERY_BG=193
ALIEN_SECTION_USER_FG=0
ALIEN_SECTION_USER_BG=87
ALIEN_SECTION_PATH_FG=0
ALIEN_SECTION_PATH_BG=45
ALIEN_SECTION_VCS_BRANCH_FG=87
ALIEN_SECTION_VCS_BRANCH_BG=238
ALIEN_SECTION_VCS_STATUS_FG=87
ALIEN_SECTION_VCS_STATUS_BG=238
ALIEN_SECTION_VCS_DIRTY_FG=87
ALIEN_SECTION_VCS_DIRTY_BG=238
ALIEN_SECTION_SSH_FG=238
ALIEN_SECTION_VENV_FG=238
ALIEN_GIT_TRACKED_COLOR=193
ALIEN_GIT_UN_TRACKED_COLOR=87
ALIEN_SECTION_VERSION_BG=237
ALIEN_PYTHON_COLOR=40
ALIEN_RUBY_COLOR=196
ALIEN_JAVA_COLOR=178
ALIEN_GO_COLOR=81
ALIEN_ELIXIR_COLOR=99
ALIEN_CRYSTAL_COLOR=8
ALIEN_NODE_COLOR=41
ALIEN_PHP_COLOR=57

Or creating a new theme file:

/path/to/custom/theme.zsh

#!/usr/bin/env zsh

alien_theme(){
  ALIEN_PROMPT_FG=87
  ALIEN_SECTION_EXIT_FG=0
  ALIEN_SECTION_EXIT_BG=87
  ALIEN_SECTION_EXIT_BG_ERROR=202
  ALIEN_SECTION_TIME_FG=0
  ALIEN_SECTION_TIME_BG=193
  ALIEN_SECTION_BATTERY_FG=0
  ALIEN_SECTION_BATTERY_BG=193
  ALIEN_SECTION_USER_FG=0
  ALIEN_SECTION_USER_BG=87
  ALIEN_SECTION_PATH_FG=0
  ALIEN_SECTION_PATH_BG=45
  ALIEN_SECTION_VCS_BRANCH_FG=87
  ALIEN_SECTION_VCS_BRANCH_BG=238
  ALIEN_SECTION_VCS_STATUS_FG=87
  ALIEN_SECTION_VCS_STATUS_BG=238
  ALIEN_SECTION_VCS_DIRTY_FG=87
  ALIEN_SECTION_VCS_DIRTY_BG=238
  ALIEN_SECTION_SSH_FG=238
  ALIEN_SECTION_VENV_FG=238
  ALIEN_GIT_TRACKED_COLOR=193
  ALIEN_GIT_UN_TRACKED_COLOR=87
  ALIEN_SECTION_VERSION_BG=237
  ALIEN_PYTHON_COLOR=40
  ALIEN_RUBY_COLOR=196
  ALIEN_JAVA_COLOR=178
  ALIEN_GO_COLOR=81
  ALIEN_ELIXIR_COLOR=99
  ALIEN_CRYSTAL_COLOR=8
  ALIEN_NODE_COLOR=41
  ALIEN_PHP_COLOR=57
}

Then activate the theme using:

export ALIEN_CUSTOM_THEME_PATH=/path/to/custom/theme.zsh

Keep previous PROMPT:

export ALIEN_KEEP_PROMPT=1

This will keep previous prompt while new prompt is being rendered.

nerd font

Enable Nerd Font

export ALIEN_USE_NERD_FONT=1

Note: Nerd fonts

promptlib-zsh Configs:

customize symbols

export ALIEN_GIT_STASH_SYM=@
export ALIEN_GIT_SYM=G
export ALIEN_HG_SYM=H
export ALIEN_SVN_SYM=S
export ALIEN_BRANCH_SYM=
export ALIEN_GIT_ADD_SYM=+
export ALIEN_GIT_DEL_SYM=-
export ALIEN_GIT_MOD_SYM=⭑
export ALIEN_GIT_NEW_SYM=?
export ALIEN_GIT_PUSH_SYM=↑
export ALIEN_GIT_PULL_SYM=↓
export ALIEN_JAVA_SYM='JAVA:'
export ALIEN_PY_SYM='PY:'
export ALIEN_RB_SYM='RB:'
export ALIEN_GO_SYM='GO:'
export ALIEN_ELIXIR_SYM='EX:'
export ALIEN_CRYSTAL_SYM='CR:'
export ALIEN_NODE_SYM=''
export ALIEN_PHP_SYM='PHP:'

Note: this overrides ALIEN_USE_NERD_FONT configuration.

Libraries Used

Author

Contributing

Bug reports and pull requests are welcome on GitHub at alien repository. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

  1. Fork it ( https://github.com/eendroroy/alien/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

The project is available as open source under the terms of the MIT License.

alien's People

Contributors

betaboon avatar codypl avatar edgardoarriagada avatar eendroroy avatar gitter-badger avatar khaosdoctor avatar knutzk avatar kunsi avatar markpendlebury 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

alien's Issues

Create new release

Maybe after all the changes lately it would be a good idea to tag a new minor release ?

Tmux theme?

Possible to have the same theme for tmux? Would be cool.

Layout issue with paths w' underscores?

Describe the bug
Gap appears with multiple underscores

To Reproduce
Go to path with underscores

Expected behavior
No gap

Screenshots
image

Environment:

  • Plugin Manager: [0h-my-zsh]

Problem with git stash

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • Do you want to request a feature or report a bug?
    I think it is a bug (i.e.: command missing or misspelled).

  • What is the current behavior?
    I just updated to the latest version on master and I noticed @{} to appear in my prompt.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    I just updated to the latest version on master and I noticed @{} to appear in my prompt.
    I further digged and I figured out that it is possibly related to git stash as I see for a second:
    alien_git_stash:1: command not found: plib_git_stash

  • What is the expected behavior?
    I'm not sure what I should expected to see because it's first for me, just wanted to let you know.

  • What is the motivation / use case for changing the behavior?
    It wasn't working like this before.

  • Please tell us about your environment:

    • Plugin Manager: [antigen | zplug | oh-my-zsh | ... ]
    • ZSH Version

    I'm on a Mac with Mojave, I'm using Terminal.app with Nerd font on latest oh-my-zsh and zsh 5.4.2.

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)
    Notice that having or not having something stashed produces always the same behaviour described above. Adding or removing things from the stash always produces @{} as a result.

Black prompt background and text color though ALIEN_THEME value is set

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • What is the current behavior?

Though Alien is working fine on Ubuntu, both the prompt background and text are colored black though I have set ALIEN_THEME=blue in .zshrc.

  • What is the expected behavior?

Alien's prompt is colored as it should be.

  • Please tell us about your environment:

Plugin Manager: oh-my-zsh
ZSH Version: zsh 5.4.2 (x86_64-apple-darwin6.7.0)
Terminal emulator: iTerm2 v3.1.5
Report Terminal Type (an iTerm2 preference): xterm-256color

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)

This behavior is experienced in both Terminal and iTerm2.

In iTerm2, going to the current profile's color settings and changing the ANSI color values for normal black changes the background and text color of the prompt and changing the value for bright black changes the color of the indicator on the line where I enter commands. The prompt text is set to the same value as the prompt background and changes with it, so the text is never visible unless highlighted.

Regardless of changing ALIEN_THEME's value, I end up with the same mix of a black prompt background and text. Everything else seems to be working just fine.

I am quite certain I installed Alien properly on my Mac just as I have on Ubuntu (no issues in Ubuntu) through the following method:

  • download and install Powerline fonts
  • set terminal profile used with alien theme to use Powerline-patched font
  • cd to .oh-my-zsh/custom/themes
  • download alien theme git repo
  • cd alien
  • git submodule update --init --recursive
  • edit .zshrc to include:
# Same results regardless of whether green, blue, or red theme is used
export ALIEN_THEME=blue
ZSH_THEME="alien/alien"
  • source ~/.zshrc

e: deleted extraneous information

Detect terminal size and adjust the theme sections accordingly

Is your feature request related to a problem? Please describe.
Sometimes if the terminal size is small, the theme section takes two line to display.

Describe the solution you'd like
There can be a customizable option to display some section only if the current size of the terminal is greater than X px. Or change the action of some sections like path section, to show only 1 level path.

term_000

All symbols remain ?s

  • I'm submitting a ...

    • [X ] bug report
    • feature request
    • support request
  • What is the current behavior?
    After installing everything using zplug and npm all my symbols remain ?s in boxes

  • What is the expected behavior?

arrows and dirty symbols etc from powerline and or Nerd-font

  • What is the motivation / use case for changing the behavior?

so the theme actually looks like it should

  • Please tell us about your environment:
  • Plugin Manager: zplug & oh-my-zsh
  • ZSH Version
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)
    PS: how might i go about altering the prompt to get rid of certain portions

Install document is demanded

  • I'm submitting a ...
    • bug report
    • feature request
    • support request

Hi, thanks for the very great work.
However, I am new to zsh and its themes and plugins. Therefore, I don't quiet understand how to install and configure the alien theme with the content on the README file. Hoping someone can help and add a related link or write a short tutorial to install and configure it.


At first, I followed the README file to try to manually install the theme. Overriding and adding theme is succeed and it is also succeed running the git submodule update --init --recursive, but after that, when I change ZSH_THEME="alien" and do source ~/.zshrc, it just happened to fail to load the theme.
Then I tried the antigen method. After installing antigen with brew install antigen, I run antigen theme eendroroy/alien alien as told, and it seems that it worked. However, it didn't work since I put antigen theme eendroroy/alien alien in ~/.zshrc.
When I start a new terminal window, I just show Antigen: Another process in running. . After running antigen reset and start a new window again, the Antigen: Another process in running. didn't show up, neither the theme changed.
Hoping more document provided, I may help after I know the way through.

zsh slows down in git reopsitories

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • Do you want to request a feature or report a bug?
    Bug

  • What is the current behavior?
    slows down when git repository is too large(like in my case 1.6GB)

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    Clone a repo more of size more than a GB. And cd and you will get to know the lagging behavior.

  • What is the expected behavior?
    It should not lag.

  • What is the motivation / use case for changing the behavior?
    for better and smooth usage.

  • Please tell us about your environment:

  • Arch Linux

  • Terminal kitty

  • Plugin Manager: oh-my-zsh

  • ZSH Version: 5.5.1

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)

Changes to ALIEN_* variables don't take effect

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • Do you want to request a feature or report a bug?
    First off, thank you for creating this ZSH theme. It's absolutely fantastic

The bug I'd like to report is an inability to change any of the variables (ex. ALIEN_SECTIONS_LEFT_SEP_SYM or ALIEN_USE_NERD_FONT after the theme has been sourced.

  • What is the current behavior?
    any ALIEN_ vars exported before the theme is first sourced work as expected.
    any ALIEN_ env vars modified and re-exported after the theme is first sourced take no effect, even if you source the theme again.

Well, to be more specific, it seems like they DO take effect momentarily, but some async process comes in and overwrites them with the original values from when the theme was initially sourced. Please see the included asciinema recording below for an example of this behavour

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    This recording is a minimal example of the problem
    https://asciinema.org/a/ebS4Z9Tkd3Y292WtGITBZS28C

  • What is the expected behavior?
    I expect changes to env vars to take effect as they do in the asciinema recording fro mthe README

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment:

  • Terminal emulator: iterm2 3.3.8
  • Plugin Manager: none
  • ZSH Version: 5.7.1
  • Operating System: MacOS 10.14
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)

what am I doing wrong?

I'm new to ZSH, I installed Antigen successfully (using their recommended curl command), and I set the theme successfully, but when I start up my terminal I get the following:

/usr/home/kilted/.zsh/alien/alien.zsh-theme.antigen-compat:source:8: no such file or directory: /usr/home/kilted/.zsh/alien/libs/promptlib/activate
/usr/home/kilted/.zsh/alien/alien.zsh-theme.antigen-compat:source:9: no such file or directory: /usr/home/kilted/.zsh/alien/libs/zsh-async/async.zsh
/usr/home/kilted/.zsh/alien/alien.zsh-theme.antigen-compat:source:10: no such file or directory: /usr/home/kilted/.zsh/alien/libs/zsh-256color/zsh-256color.plugin.zsh
alien_venv:1: command not found: plib_venv                                                                                                         
alien_async_prompt:1: command not found: async_init
alien_async_prompt:2: command not found: async_start_worker
alien_async_prompt:3: command not found: async_register_callback
alien_async_prompt:4: command not found: async_job

Did I fail to install some other needed dependency?

No VCS status shown

I'm in a git repo but

  vcs_branch:async
  vcs_status:async
  vcs_dirty:async

do not seem to have any effect. No symbols shown. Using latest version. Any clues how to investigate this?

add icon to know if git repo contain some stashes

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • Do you want to request a feature or report a bug?
    it's to add a little feature that fish bobthefish theme contained.
    In this theme, when you are in a git repositor, you can also know if it contains some stash with an added icon on CLI

https://github.com/oh-my-fish/theme-bobthefish

  • What is the motivation / use case for changing the behavior?
    I think it can be a cool feature?

  • Please tell us about your environment:

  • Plugin Manager: [oh-my-zsh ]
  • ZSH Version : 5.5.1

First character in command is repeated when tab is hit

  • I'm submitting a ...
    • bug report
    • feature request
    • support request

What is the current behavior?
In this gif I type "l", then "tab" and then I hit "backspace". I expect that then the "l" is still green and I can type the "s" (or whatever I want). But the "l" is repeated when I type "s".

2019-06-30 00 49 31

I cannot reproduce this with other themes like enysdovhan/spaceship-prompt

Environment:

  • Plugin Manager: [antigen]
  • ZSH Version 5.7.1 (x86_64-apple-darwin18.2.0)

using async times out - git info not shown

OS version: pop os 22.04
Kernel version: 6.0.6-76060006-generic
font: Space Mono Nerd Fonts

when configuring my .zshrc file with async for vcs_branch, vcs_status and vcs_dirty, my prompt no longer displays git info.
Screenshot from 2022-12-05 17-07-49

~/.config/zsh/themes/alien/libs/zsh-async
❱ ./test.zsh -v -x
sigwinch_test.txt

my .zshrc config
.zshrc
and for completeness, my .zshenv file

when removing the :async from the file, git info is displayed again
regular prompt

Have i a setting wrong, am i missing a prerequisite? Any help would be appreciated

[Feature Request] Ability to reinitialize alien_theme without restarting zsh

Is your feature request related to a problem? Please describe.
This feature request is related to #30

Describe the solution you'd like
I'd love to find some way to reinitialize alien_theme without having to kill my current shell, edit .zshrc, and start a new shell

Describe alternatives you've considered
N/A

Additional context
To give some context, I predominantly access zsh through terminal emulators configured to use powerline-enabled fonts, including nerd fonts, but I sometimes launch new shells and access existing shells (through tmux) from a terminal emulator that can't support powerline (terminals integrated into IDEs, for example), or through SSH from terminal emulators on machine's I can't install custom fonts on

async scripts not found

I cloned the repo to my .oh-my-zsh/custom/themes directory as directed and modified .zshrc to specify ZSH_THEME="alien/alien" and set ALIEN_THEME="red".

The theme seems to be working, at least visually, but I keep getting the following error upon starting a Terminal instance:

/home/USER/.oh-my-zsh/custom/themes/alien/alien.zsh-theme:source:5: no such file or directory: /home/USER/.oh-my-zsh/custom/themes/alien/libs/promptlib/activate
/home/USER/.oh-my-zsh/custom/themes/alien/alien.zsh-theme:source:6: no such file or directory: /home/USER/.oh-my-zsh/custom/themes/alien/libs/zsh-async/async.zsh
/home/USER/.oh-my-zsh/custom/themes/alien/alien.zsh-theme:source:7: no such file or directory: /home/USER/.oh-my-zsh/custom/themes/alien/libs/zsh-256color/zsh-256color.plugin.zsh
alien_async_prompt:1: command not found: async_init
alien_async_prompt:2: command not found: async_start_worker
alien_async_prompt:3: command not found: async_register_callback
alien_async_prompt:4: command not found: async_job
alien_venv:1: command not found: plib_venv`

and the following lines echoed to stdout every time I run a command:

alien_async_prompt:1: command not found: async_init
alien_async_prompt:2: command not found: async_start_worker
alien_async_prompt:3: command not found: async_register_callback
alien_async_prompt:4: command not found: async_job
alien_venv:1: command not found: plib_venv`

e: Indeed, the links to other git repos (such as zsh-async) are empty in my directory list. I will try deleting those and manually cloning those repos to the required directory soon and see if that helps.

Two line promt

Feature request/Question.
Hi. Really enjoying this theme, but two line promt isn't perfect for me in some cases, is there any way to change it?

Git Status no longer shown

Describe the bug

I've encountered the same problem as described in #41 on one of my systems. I use the same config across multiple systems (as they are version controlled dotfiles) and its only one system where this has cropped up and stopped working.

To Reproduce
Steps to reproduce the behavior:

No explicit error is reported, the prompt is missing all git info when in a version controlled directory.

Expected behavior

The async module should show the git status.

Screenshots

N/A

Environment:

  • Plugin Manager: Not entirely sure to be honest.
  • ZSH Version: 5.9
  • Operating System: Gentoo (no version, rolling distro, updated daily)
  • Terminal Emulator: kitty-0.32.1 (but same issue in Xfce xfce4-terminal-1.1.2

Additional context

Not changed anything in the config for quite some time, so its likely some system update has changed things. Unsure how to debug this, the output of ./async_test.zsh purports to have passed (see most of output here) but the prompt shows that the exit code was 1 suggesting it failed. 🤷

stderr disappears (again)

Looks like issue #32 is still happening. Worked fine for a few days, but stderr has disappeared on me in one of my terminal sessions.

Sticky prompt

Is it possible to get the status bar in the prompt (Left section) to become sticky in the bottom while the prompt still have the same behavior?

Date format in prompt

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • Question
    It is possible to change the date format?

  • What is the current behavior?
     04:19:57 pm | charged  username  ~ 

  • What is the expected behavior?
     16:19:57 | charged  username  ~ 

  • What is the motivation / use case for changing the behavior?
    In my country 24h clock is used 😄

  • Please tell us about your environment:

  • Plugin Manager: antigen use oh-my-zsh
  • ZSH Version 5.5.1 (x86_64-apple-darwin15.6.0)
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)
    It could be useful to allow override of alien_date_time_info(), alien_battery_stat(), etc functions if its possible

how to install using zplug

  • I'm submitting a ...
    • bug report
    • feature request
    • [x ] support request

Hi, I'm finding the documentation a little confusing.

I installed zplug then I ran:
zplug "eendroroy/alien"

Now do I need to update this line in .zshrc?
ZSH_THEME="[name of theme]"

Last line is sometimes (randomly?) overwritten

Describe the bug
Sometimes, the last line of text in the terminal output is overwritten by the prompt.

To Reproduce
No real clue, I've been holding off making this issue for that reason alone. But I switched to alien in late December 2020, and this problem seems to has persisted across many different system configurations.

Even though, I do believe just pressing enter for long enough will show the issue, it's really inconsistent.

Expected behavior
Do no overwriting of previous lines and leave all stdout output as-is.

Screenshots

  • Here, after typing terminator --version the first time, it overwrites the output with the prompt, but the second time the command is issued it works as it should
    image
  • This is a more extreme case of the prompt overwriting it's own line, it happened after pressing enter for long enough.
    image

Environment:

  • Plugin Manager: None, I just source the alien.zsh file
  • ZSH Version: zsh 5.8
  • Operating System: Funtoo (also experienced with Fedora 33 and 34)
  • Terminal Emulator: terminator 1.91 (also experienced in 2.1.1; I'm pretty sure it also occurred in xterm)

Update: I don't use alien anymore, but my old .zshrc file can be found here, with relevant settings in it's Alien section.

Please clarify the adding of Alien theme on Oh-My-Zsh in Readme.md

Problem description
In the readme.md file, there's nothing below the Oh-My-Zsh section. Are we required to clone the full repository as mentioned below it in manually cloning?

Possible solution
Can you show how it is done for Oh-My-Zsh, like you have shown for other plugin managers? The Oh-My-Zsh link you have provided is also confusing.

Can't type anything when running on zsh at cygwin

  • I'm submitting a ...

    • bug report
  • Do you want to request a feature or report a bug?

Report a bug (unless it's not supported)

  • What is the current behavior?

I can't type anything after the theme is loaded via antigen

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

I open new shell, this what comes up, and believe me, I strike the keyboard but no character appear. The caret is blinking though so the window is reponsive. ctrl+c also won't work

image

  • What is the motivation / use case for changing the behavior?

I would like to use alien on windows too.

  • Please tell us about your environment:
  • Plugin Manager: antigen, ohmyzsh
  • ZSH Version: 5.5-1

Also, cywgin x64 on Windows 7.

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)

I boiled down .zshrc to those lines only

source "$HOME/antigen/antigen.zsh"
export ALIEN_THEME="green"
antigen theme eendroroy/alien alien
antigen apply

stderr disappears

Occasionally (a few times per day) stderr output disappears. I have to quit the terminal session and restart for it to come back. This happens both on the zsh command line, and even in applications such as lldb.

To Reproduce
Not sure how to repro this. It just seems to happen randomly

Environment:

  • Plugin Manager: oh-my-zsh
  • ZSH Version: 5.7.1
  • Operating System: macOS 10.15.2 build 19C57
  • Terminal Emulator: iTerm2 3.3.7

Additional context
This definitely seems to be related to the Alien theme. It doesn't happen with other themes. I'm not sure how to diagnose the issue. I'm happy to try anything that might help.

history is empty when restarted

  • I'm submitting a ...

    • bug report
    • feature request
    • [*] support request
  • Do you want to request a feature or report a bug?

  • What is the current behavior?
    When restarted the shell, history becomes empty.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    Close the shell and restart again. Check history.

  • What is the expected behavior?
    The history should display, if possible with some options.

  • What is the motivation / use case for changing the behavior?
    history is really important for shell users.

  • Please tell us about your environment:

  • Plugin Manager: [antigen | zplug | oh-my-zsh | ... ]
  • ZSH Version

oh-my-zsh
zsh 5.4.2

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc)
    Thanks for the awesome app, I really want to use this if the history is fixed.

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.