Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Sall
@ss-o:matrix.org
[m]
Above is example which also adjusts behaviour other stuff it includes history
🏳️‍⚧️ nullrequest(she/her)
@nullrequest:matrix.org
[m]
is there a good set of defaults that matches omz?
1 reply
Sall
@ss-o:matrix.org
[m]
you should easy google them to find more and what they do
Have you tried to use https://wiki.zshell.dev?
there is many examples and info, so you can recreate, also I can paste exmaple which includes some oh-my-zsh behaviour
Sall
@ss-o:matrix.org
[m]
# OH-MY-ZSH LIBRARY ================================================================================================== #
local snippets=({git,clipboard,history,completion,vcs_info}.zsh)
zi is-snippet lucid has'svn' for \
    svn multisrc'${snippets[*]}' pick'/dev/null' \
  atinit'HISTFILE=${ZSH_CACHE_DIR}/.history; COMPLETION_WAITING_DOTS=true;' \
    OMZ::lib
# OH-MY-ZSH PLUGINS ================================================================================================= #
zi light-mode for \
  atload"unalias grv g" OMZP::{git,sudo,encode64} \
    if'[[ -f /etc/os-release ]] && source /etc/os-release && [[ "$ID" = arch ]]' OMZP::archlinux \
    if'[[ -d ~/.ssh ]]' OMZP::ssh-agent \
    if'[[ -d ~/.gnupg ]]' OMZP::gpg-agent \
    if'[[ -d /opt/google-cloud-sdk ]]' OMZP::gcloud \
  atload'zstyle ":completion:*" special-dirs false' PZTM::completion
# ANNEX ============================================================================================================== #
zi light-mode for z-shell/z-a-meta-plugins @annexes
# META-PLUGINS ====================================================================================================== #
zi light-mode for \
  skip'fzy peco' @fuzzy \
  skip'F-Sy-H' @z-shell \
  skip'dircolors-material ripgrep peco tig hexyl bat hyperfine fd' @console-tools \
  @zsh-users+fast @romkatv
[[ $COLORTERM = *(24bit|truecolor)* ]] || zmodload zsh/nearcolor
(( $+commands[vivid] )) && { export LS_COLORS="$(vivid generate solarized-light)" }
# PLUGINS ============================================================================================================ #
zi-turbo '0a' for \
  has'exa' atinit'AUTOCD=1' \
    zplugin/zsh-exa \
  atinit'NVM_DIR="${HOME}/.nvm"; NVM_COMPLETION=false; NVM_LAZY_LOAD=true; NVM_AUTO_USE=true' \
    lukechilds/zsh-nvm \
    MichaelAquilina/zsh-you-should-use \
  has'zoxide' z-shell/zsh-zoxide
🏳️‍⚧️ nullrequest(she/her)
@nullrequest:matrix.org
[m]
I'll work on one in the evening when I'm free cause I'm outside rn
wereket
@wereket
hi all
Sall
@ss-o:matrix.org
[m]
👋
wereket
@wereket
what in a world is this config ?
a config from Mars ?
I was a zimfw user before
going back to zimfw because installing plugins seems hard with zinit
are there a command to install the most use plugins ?
Sall
@ss-o:matrix.org
[m]

If it is hard, then probably you should stay with zimfw, as Zi is for more advanced users.
Command to install plugins a bit more complex but allows to install almost anything, not only zsh specific and many users has they own style of loading plugins and has syntax alternatives.

Some examples: https://wiki.zshell.dev/community/category/-collection
Overview: https://wiki.zshell.dev/docs/getting_started/overview
Search: https://wiki.zshell.dev/search

wereket
@wereket
@ss-o:matrix.org is there a sane default with the most used plugins ?
the fact some zi can act as a package manager does not create conflict with the distropackage manager /
?
Sall
@ss-o:matrix.org
[m]

Not sure what you mean by defaults. Zi is not framework-specific, so can use Oh-My-Zsh, Presto and etc., so it not limits you to something and most users have their own defaults, the only way to learn it is reading wiki while practising.

Here is user recently migrated from Oh-My-Zsh: https://github.com/Lunarequest/Dotfiles/blob/mistress/zsh/.zshrc
Some other example: https://github.com/z-shell/playground/tree/main/profiles

I put this in .zshrc ? zi ice lucid wait as'completion' blockf
zi light zchee/zsh-completions
?
Sall
@ss-o:matrix.org
[m]
Yes 👍️
Lucy
@lucy:mary.zone
[m]

Is there any way to combine a zi ice and zi snippet into one command?
Like these:

    zi ice lucid wait as'completion' blockf has'rg'
    zi snippet https://github.com/BurntSushi/ripgrep/blob/master/complete/_rg

I simply think it'd look cleaner as a single command.

Lucy
@lucy:mary.zone
[m]
I just found the "For" page, so yeah there is.
Sall
@ss-o:matrix.org
[m]
There is a bit of confusion between standard and “for” syntax, I am trying to reference it in wiki
wereket
@wereket
hello everyone
please can someone helo
help
Sall
@ss-o:matrix.org
[m]
👋
wereket
@wereket
@ss-o:matrix.org hello mate
am currently with zimfw and stumbeld on zi
but it's a headache it seem a config made by aliens
Sall
@ss-o:matrix.org
[m]
Tell me what you trying to install
wereket
@wereket
does someone has a zi config with the best plugins already installed
there is the default that has only completion
I am using the great starship prompt
Sall
@ss-o:matrix.org
[m]
Everyone has their own best plugins. Let me have a look, give a sec.
wereket
@wereket
thank you
Sall
@ss-o:matrix.org
[m]
# Sets sane Zsh built-in environment options.
zmodule environment
# Provides handy git aliases and functions.
zmodule git
# Applies correct bindkeys for input events.
zmodule input
# Sets a custom terminal title.
zmodule termtitle
# Utility aliases and functions. Adds colour to ls, grep and less.
zmodule utility
It's prezto modules?
wereket
@wereket
no
zim modules
Sall
@ss-o:matrix.org
[m]
ZImfw modules seems to be stolen from Prezto, here are docs how to install Prezto modules: https://wiki.zshell.dev/docs/getting_started/migration#prezto
name plugins you want to install, I'll give you commands, however the ones you currently use are in the wiki already.
wereket
@wereket
stolen how ?
did not know that
inspired maybe ?
1 reply