yardnsm / blox-zsh-theme Goto Github PK
View Code? Open in Web Editor NEW:computer: Clean, modular ZSH theme
License: MIT License
:computer: Clean, modular ZSH theme
License: MIT License
I don't understand, what exactly is happening, but when some directories, instead of the home-adjusted path, a literal tab_label
is printed as part of the prompt (blox_hook__title
) after it was rendered correctly once:
/srv/www/projekt master[hash] ✘ $ [[12:17]
❯
~tab_label master[hash] ✘ $ [12:17]
❯
If I change to title hook to
# ---------------------------------------------
# Hooks
# Set the title to cwd
function blox_hook__title() {
echo -ne "\e]2;${PWD/${HOME}/\~}\a"
}
this does not happen. I do think it has to be something in my zsh setup, but I'm at a loss, what it could be.
(Feel free to close this as "Not a problem /here/", I just thought I'd ask)
exec_time
- last command's execute timepyenv
- display the python version being used by pyenv
virtualenv
- display the name of the currently used virtual envnodejs
block should be visible if there's at least one file matching /^\.(m)?(j|t)s(x)?$/
cwd
- Display ...
when cwd is truncatedgit
- add an indicator for stashed filesBecause why not? :D
The changes introduced in #3 makes it such that BLOX_CONF__PROMPT_PREFIX
can only be disabled by unsetting it after sourcing blox.zsh
. The expansion done here means any null/empty value for that variable will be replaced with \n
, effectively meaning you cannot disable the prompt prefix.
I use this theme with terminator, and opening a new terminal window below (using ctrl+O) often causes the previous terminal window to lose lines. I'm not totally sure what's causing this, but this problem doesn't occur with other zsh themes. I suspect it has to do with resizing code that clears too many lines.
Hi guys,
I've installed now oh-my-zsh. using theme "linuxonly".
I took me a long tim e to install QEMU.
root@think-01:pts/1->/root (0)
qemu
zsh: command not found: qemu
NOW WITH TAB
root@think-01:pts/1->/root (127)
_qemu
_qemu _qemu_log_items
so thats it. now in bash... and TAB
root@think-01:pts/1->/root (127)
bash
root@think-01:~# qemu-
qemu-img qemu-system-alpha qemu-system-m68k qemu-system-mipsel qemu-system-ppc64le qemu-system-sparc qemu-system-xtensaeb
qemu-io qemu-system-arm qemu-system-microblaze qemu-system-moxie qemu-system-riscv32 qemu-system-sparc64
qemu-make-debian-root qemu-system-cris qemu-system-microblazeel qemu-system-nios2 qemu-system-riscv64 qemu-system-tricore
qemu-nbd qemu-system-hppa qemu-system-mips qemu-system-or1k qemu-system-s390x qemu-system-unicore32
qemu-pr-helper qemu-system-i386 qemu-system-mips64 qemu-system-ppc qemu-system-sh4 qemu-system-x86_64
qemu-system-aarch64 qemu-system-lm32 qemu-system-mips64el qemu-system-ppc64 qemu-system-sh4eb qemu-system-xtensa
everythings there. what do am i wrong?
Thanks for your oppinions.
I like this theme a lot, just a couple suggestions for more options. I think it would be nice to have the option to remove the commit hash and the newline between prompts.
This will eliminate the need for coupled setups, such as in:
https://github.com/yardnsm/blox-zsh-theme/blob/master/blox.zsh#L81-L83
I suggest enumerating all of the used blocks and try to run the blox_block__${BLOCK_NAME}_hook__preexec
and blox_block__${BLOCK_NAME}_hook__precmd
for the preexec
and the precmd
hooks accordingly.
Also, support for more hooks could be nice.
The theme is not perfect. Let's make it so.
zshrc
, a }
is added next to the git info. Fix this.%{…%}
) when needed/A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.